Skip to main content
Question

Extracting ticket ID from response_body

  • May 17, 2026 7:13 PM UTC
  • 0 replies
  • 4 views

thayes890
Apprentice

I am creating a workflow from a service request.  
The service request raises a ticket in my department’s workspace.

A second step (w1) creates a new ticket using a web request (using the tickets endpoint) based on selected information from the service request.

The next web request step (w9) should move this ticket to a different department’s workspace using the move_workspace endpoint.

I need to pass the ticket ID created in w1 into the move_workspace API call.  However, I cannot get the referencing correct.

I assumed that {{w1.response_body.ticket.id}} would return the correct value, however this is blank. 

I can return the whole {{w1.response_body}} as one block, and I have tried using the expression builder to extract the ID value using a combination of subString and indexOf expressions without success.
I also tried using the JSON parser as a mid-step, however the $.ticket.id value simply references the original ticket created by the service request.

Liquid filters looked promising but have had no success.

Each step of the workflow works perfectly in isolation, I simply need a way of putting the ticket ID from the middle step into the final move_workspace API call.