This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Relate tickets to one another via REST API

Hello,

I need to create a relationship beetwen change and request (RequestedCausedByChange type). With documentation and this topic https://community.microfocus.com/it_ops_mgt/itsma_suite/f/itsma-q-and-a/326768/import-configuration-management-sacm-relationships-many2many  I was able to create a body for my post:

{"relationships":[{"name":"RequestCausedByChange","firstEndpoint":{"Request":"XXX"},"secondEndpoint":{"Change":"YYY"}}],"operation":"CREATE"}
 
where XXX is the Id of my request and YYY is the id of my change. I use EMS/Bulk API. I got error 500 though I do not see any reason why?

Do you have any ideas what to change in my body to get the relationship done?
Thanks!
Marcin Plisz
Parents
  • Verified Answer

    Hello,

    I have tested in a 2022.11 version and it works using this syntax (use the change value first):

    {

                "relationships": [
                    {
                        "name""RequestCausedByChange",
                        "firstEndpoint": {
                            "Change""24308"
                        },
                        "secondEndpoint": {
                            "Request""24556"
                        }
                    }
                ],
                "operation""CREATE"
          }
    Thanks
  • Hi! 

    Sorry for late response, I was working on something else. I tested it today and it worked, amazing - thanks! Never came to my mind the Change has to go first.

    Thank a lot for your help!

Reply Children
No Data