Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Set custom field value when comment author is in specific project role

Christopher Codding
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 22, 2018

Hello,

 I'm trying to find a way to set a custom field on an issue when it is commented on by users in a specific role. For example, set field to 'x' when commented is added by a user in the 'QA' project role.

The project automation add-on allows me to do this by setting conditions based on user groups, but I'd prefer to leverage project roles.

Any help is much appreciated!

Thanks,

Chris

1 answer

1 accepted

0 votes
Answer accepted
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 22, 2018

Hello,

You can develop a listener, which would work on the Issue Commented event. You could check the required condition and update the custom field value. Or you could use such plugins as Power Scripts or ScriptRunner to develop such a listener.

Christopher Codding
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 23, 2018

Thanks Alexey!

I'm relatively new to scripting with JIRA, but ScriptRunner seems like it should work.

Suggest an answer

Log in or Sign up to answer