Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Add Approver via API

Jeremy Wilson
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
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
3 votes
Answer accepted
Jeremy Wilson
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
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