Add Approver via API

Jeremy Wilson December 13, 2022

I'm looking for a method to add an approver to existing JSM tickets via the API.  Looking at the JSM API docs I don't see a method to add one, just get a list of existing ones.

1 answer

1 accepted

Suggest an answer

Log in or Sign up to answer
2 votes
Answer accepted
Jeremy Wilson December 20, 2022

So, some digging turned up the answer - you have to specify the approver's account ID.  Once you have that, you can do an update to add them:

{"update":{"[Approver customfield]":[{"add":{"accountId":"[User Account ID"}}]}}

 This is tested and working.

TAGS
AUG Leaders

Atlassian Community Events