We have a lot of service projects, everyone associated to a service. To avoid manually change the owner or the stakeholder when people change in the projects, we would like to create a script runner automation to update these fields, something like
PUT /rest/servicedeskapi/servicedesk/{serviceDeskId}/service/{serviceId}
{ "stakeholders": [ { "accountId": "account-id-of-stakeholder-1" }, { "accountId": "account-id-of-stakeholder-2" } ] }
and
GET /rest/servicedeskapi/servicedesk/{serviceDeskId}/service
to get the list of services
Are you by chance maintaining these services currently in your Assets (part of Jira Service Management)?
If yes, you should be able to set the owner as a user-attribute on the object and keep it up to date with an automation rule.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.