Question

Updating Parent Ticket based on Child Ticket Status

  • 4 March 2024
  • 6 replies
  • 94 views

Userlevel 4
Badge +10

I need to update a parent ticket status once the child ticket is set to resolved.  I cannot figure out how to do that in the workflow.   Any ideas?


6 replies

Userlevel 7
Badge +13

I need to update a parent ticket status once the child ticket is set to resolved.  I cannot figure out how to do that in the workflow.   Any ideas?

There are a app that sync child to parent. 
If you like to build it your self you need to do it using API. 

You need to 2 web request nodes, one to get the parent ticket and the second to update the parent ticket. 

/api/v2/tickets/[id]?include=related_tickets

With that you get the parent ticket ID, then https://api.freshservice.com/v2/#update_ticket_priority to update the ticket. 

Userlevel 4
Badge +10

@Daniel Söderlund, thank you for the reply.  In my workflow, I have the child ticket created and mark the parent as pending.  Would I be able to continue in the same workflow and adda  conditional of when child ticket is closed, to change status for parent at open?  I know a WF cannot kick off from another workflow change, so not sure how to kick off this aspect of changing status on the parent when the child is closed.  I understand using the API, but cannot see how to kick it off.

Userlevel 7
Badge +13

@Daniel Söderlund, thank you for the reply.  In my workflow, I have the child ticket created and mark the parent as pending.  Would I be able to continue in the same workflow and adda  conditional of when child ticket is closed, to change status for parent at open?  I know a WF cannot kick off from another workflow change, so not sure how to kick off this aspect of changing status on the parent when the child is closed.  I understand using the API, but cannot see how to kick it off.

You need a separate workflow for the child ticket.  To skip one web requests in that you could add the parent ticket number in a custom field. 

Userlevel 4
Badge +10

@Daniel Söderlund, thank you for the reply.  In my workflow, I have the child ticket created and mark the parent as pending.  Would I be able to continue in the same workflow and adda  conditional of when child ticket is closed, to change status for parent at open?  I know a WF cannot kick off from another workflow change, so not sure how to kick off this aspect of changing status on the parent when the child is closed.  I understand using the API, but cannot see how to kick it off.

You need a separate workflow for the child ticket.  To skip one web requests in that you could add the parent ticket number in a custom field. 

@Daniel Söderlund i cannot get the API to get the parent ticket.  I created a custom field to try to put the parent ticket in, but still doesn’t put the parent ticket in.  Seems the field for parent ticket is mysterious and does not work.  Any ideas?  

 

I did open a ticket with Support to get their help as well.​​​​​​

Badge +3

Hello, 
I am trying to do similar things;

I want if the parent status is change to update child ticket with the same status,
I can see in automation an event “if status is changed from “ i put Any to Anye;
i added an action on child tickets but i am not able to get the parent status to make the update.
Any help is appreciated
 

 

Userlevel 4
Badge +10

@MeriemNAIM Working with FS support, I was able to get it working.  I had to create another WF that had the event based on status is changed from any to resolved.  Then the conditional that would only include the child ticket (I created a custom field that the other WF checked a box and this was the conditional).  Then a web request to get the parent number, the a Parse action, then a web request to update the parent.  it works great.

 

I would be happy to jump on a call with you to talk through it if that is helpful.  

Reply