CA Service Management

  • 1.  How to assign parent-child relationship on SDM tickets via REST API

    Posted Jan 23, 2019 03:48 PM

    I'm looking for a query or other syntax to be able to assign a ticket as either a child or parent of another ticket via the SDM REST API.



  • 2.  Re: How to assign parent-child relationship on SDM tickets via REST API
    Best Answer

    Broadcom Employee
    Posted Jan 23, 2019 04:52 PM

    This might help:

     

    PUT /caisd-rest/in/426144 HTTP/1.1
    Host: SDMHost.ca.com:8050 
    X-AccessKey: 1962149949
    Accept: application/xml
    X-Obj-Attrs: ref_num, priority,description
    Content-Type: application/xml
    Cache-Control: no-cache
    Postman-Token: fd7d7d40-9911-5cf3-71e5-7d8b8d7691d3

    <in>
    <summary>updating summary via REST twice</summary>
    <parent id="426149"/>

    </in>

     

     

    Basically its updating incident id 426144  to have a parent id of 426149

     

    _R



  • 3.  Re: How to assign parent-child relationship on SDM tickets via REST API

    Posted Jan 23, 2019 06:17 PM

    Thanks for the fast response!!

     

    Is it only acceptable to set the parent on an "update" (PUT)? Can a parent be assigned on a "create" (POST)?



  • 4.  Re: How to assign parent-child relationship on SDM tickets via REST API

    Broadcom Employee
    Posted Jan 23, 2019 08:45 PM

    I'm not sure to be honest. It might be possible.

     

    _R



  • 5.  Re: How to assign parent-child relationship on SDM tickets via REST API

    Posted Feb 07, 2019 06:52 PM

    I could not get it to work on a POST, but it works using JSON with a PUT just fine.