Groovy Service Desk Custom Fields

Timothy Harris April 19, 2015

I have spent a day or so trying to figure out how to add Request Participants to a Service Desk request with Script runner in a post condition. No success.

 

Has anyone figured out how to update service desk custom fields? Specifically the request participants but in general how to get the type of these fields and then update them in a generic way?

1 answer

1 vote
Mark McCormack _Adaptavist_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 5, 2015

Tim, this KB article covers how to do that:

https://confluence.atlassian.com/display/JIRAKB/How+to+Automatically+Add+Request+Participants+when+Creating+an+Issue

However, it is old and needs updating. But it could be a good starting point for you.

Thanos Batagiannis _Adaptavist_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 16, 2015

In the link that Mark posted If it's an event handler you could use event.issue to get the issue and then you can convert it to a MutableIssue using issueManager.getIssueObject(String issueKey / Long issueId) , for a workflow function issue is available in the binding.

Suggest an answer

Log in or Sign up to answer