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.
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.
Recommended Learning For You
Level up your skills with Atlassian learning
Learning Path
Get started with Jira Service Management
These short, self-paced courses will help you get up and running in Jira Service Management in just 90 minutes.
Learning Path
Adopt ITSM practices with Jira Service Management
Use this path to build your IT Service Management knowledge and earn an Atlassian certification.
Setting Up ITSM Projects in Jira Service Management
This training series helps you get started in Jira Service Management quickly with the new ITSM project template.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.