I have a script some of our agents run related to some stuff in Jamf (our mdm) that results in creating a ticket for the user, with their asset attached, and assigned to the agent who runs the script. This part works great.
However, occasionally human error happens and the Agent has to run the script a second time resulting in a duplicate ticket.
Is there an endpoint in the API that can tell me if a user has open tickets with their ticket ID? Or show me the tickets in a custom view that can get me the ticket ID? I've found some info about views and tickets but not going so far as to let me inspect an individual ticket that way without already knowing the ticket ID ahead of time.
I was thinking I could then either update the ticket that it was ran a second time (if possible) or at least alert the agent that a second ticket was NOT created because the first is still open and provide the number.
As a novice shell script writer I am 100% open to the idea it's all right there and I'm just overlooking something simple. I’m even hoping for it.
Best answer by Kathryn CarterView original