How to remove issue 'Reporter' from JIRA Service Desk 'Request participants' using Script Runner?

Brett
Contributor
May 14, 2018

I have no idea how to write scripts.

I'm looking for a post function that can remove the issue 'Reporter' from the JIRA Service Desk 'Request participants' field.

Reason being, our company uses post functions to add certain people to 'Request participants' to ensure the proper e-mail notifications get generated for those involved with a request.  Without going into too much explanation, sometimes it happens that the 'Reporter' invariably gets added to the 'Request participants' field via workflow because someone includes the 'Reporter's name in a group custom field.

When the 'Reporter' is in the 'Request participants' field, the 'Share' button from the customer portal no longer works.  JIRA throws an error that basically says you can't have the 'Reporter' in the 'Request participants' field.

So I'm looking for either a post function (i.e. something I can run in Script Runner) that will check the 'Reporter' and the 'Request participants' field and remove the 'Reporter' from the 'Request participants' if the 'Reporter' happens to be in the 'Request participants' field.

Does anyone know what that scripted post function might look like, or if there is a simpler method I can implement to perform this check/action?

1 answer

0 votes
Alexey Matveev
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.
May 14, 2018
Brett
Contributor
May 14, 2018

Alexey, wow.  Thanks for the lighting fast reply.  I will check it out.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events