Bear with me as I explain the setup I am trying to get working.
I have a service request that I would like to allow managers to put in, but then would need follow up information from HR. All the fields in the service request would then be used for automation, so I need HRs contribution to be added to the primary service request.
I have an initial service request that gets the primary information I need, with fields not visible to the requester that HR will be responsible for.
Once the manager submits the request, a workflow generates an email for HR with the ticket number of the service request the manager submitted along with a link to a separate service request that has the same fields that were invisible to the initial requester along with a field to put the ticket they are trying to update. HR fills in the ticket number and the extra fields needed and submits.
Still with me? If so, good
I am trying to use the “update requested items of a service request” api (put /api/v2/tickets/id]/requested_items/]id]) in a workflow to get the information form HRs service request to merge into the managers service request.
The first ID in the API is the numeric ticket number of the service request. Since I had HR fill that in, I can pull it from there. The second id is what is giving me issues. Initially I thought that id was the service request id number, but that is not the case. When the service request is submitted and I look at the information with the get api, the second id is different every time making any kind of workflow using a request to update a request seemingly impossible.
Is the service request update the only way to update custom fields in a ticket? What is the point of this second id that changes every time when you already have a unique ticket id? Have you tracked with me to this point?
I’d love any helpful insight if anyone has any, including if there is a better way to use a ticket to update another ticket.