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 vote
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 vote

"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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published yesterday in Agile

What is ChatOps? A guide to its evolution, adoption, and significance

I am the product of AIM. I can hear that door swinging open and closed in my mind with absolute fidelity. I’d recognize that ding anywhere. At 15, as I typed away into AOL IM, I never imagined that ...

25 views 1 5
Read article

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