Notify users added to a multi-user custom field without a transition?

Hi,

We have a multi-user custom field that notifies user(s) in that field on the Create transition using a post function. However, there is now a need to notify new user(s) added (and only those added) to that field AFTER the issue has been created and without a transition. I've done some digging and it doesn't appear there is out-of-the-box Jira funtionality to do that but there may be an add-on or two that could. Does anyone have any experience with this and could advise?

Thanks,

Michael J

2 answers

0 votes
Mikael Sandberg Community Champion Apr 04, 2017

You could use ScriptRunner to do this. I have used it to do calculations whenever a field is edited in the issue.

0 votes

"without a transition" strongly implies an "edit" and hence an "issue updated" event going out to tell us it's been updated.

Whilst events contain a list of all changes made, there's no code in the notifications to say "detect change of type X and send mail on that one change".  The issue has changed, that's all it can catch (otherwise you'd need to have events going out for every possible field change!)

What you'll need to do is find or write a listener that can catch "update", detect the change(s) you are interested in, and fire an email off itself.  In this case, the code also needs to refine the user list down to "those added in this change"

I'd reach for the script-runner to do this as usual.

Hi Nic,

Your assumption about "edit" is correct, it's definitely an edit to the custom field.

We're licensed for Scriptrunner but if I understand you, I'd still need to write or find some code to make this work. Is that correct?

If so, then I'm kinda dead in the water as I'm not a coder. Was looking for a plug-n-play solution. The add-on 'Email This Issue' aka JETI looks like a possibility.

Thank you,

Michael

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Tuesday in United States

Topic Tuesday: What's your favorite topic?

Good morning All, Our goal is to get you into the habit of while enjoying your favorite morning drink you are checking the NOVA "space" for topics and comments. Your input is really needed and...

62 views 4 0
View post

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you