Setting a Ticket's Parent Using Patch

Hello, TDX Community and Happy Friday:

I am trying to create a PATCH method to set the parent of newly created tickets in a workflow. I am running the code below and it returns 200 OK, but does not seem to apply the new parent to the ticket. Any advice would be appreciated.

 

[
{"op": "replace", "path": "/ParentID", "value": "27066375"}
]

Thank you.

Tags ticket parent-child PATCH
Asked by Anderson Hanchett on Fri 12/13/24 11:27 AM
Sign In to leave feedback or contribute an answer

Answers (2)

This answer has been marked as the accepted answer
Paul Lupeituu Sat 12/14/24 6:03 PM

We were having the same issue and decided to add children to the parent instead. So we're using the "Adds all of the specified tickets as children to the specified parent ticket" (/api/{appId}/tickets/{id}/children) endpoint and it does exactly what we were looking for.

No feedback

Brittany Renn Fri 12/13/24 12:46 PM

Hi Anderson, 

Does the parent ticket have a classification that is higher than the tickets classification that you're setting as the child? It might be helpful if you could also post the full response body so we can take a look. 

Best,
Brittany Renn
TDX Support 

 

No feedback