Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

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 comment

Comment

Log in or Sign up to comment
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.

Like # people like this
TAGS
AUG Leaders

Atlassian Community Events