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 the most out of Jira Service Management
Solve customer problems efficiently and deliver outstanding service experiences.
Learning Path
Adopt ITSM practices to deliver exceptional service
Become familiar with the principles and practices that drive ITSM. Then, learn how to configure and use Jira Service Management to implement them.
Atlassian Certified Associate
Jira Service Management Agent Essentials certification
Prove you know what's essential to providing efficient and resolution-focused service in Jira Service Management.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.