I've assigned a component lead to a component of my project. On issues/tickets in the project I've added the corresponding component. On the notification scheme used by the project I've added component lead to the "close event" notification events.
So I expect when I close any ticket with the fore mentioned component it will email this component lead. But this doesn't happen...
Any thoughts?
Offhand, JIRA will only send mail to a user with the 'browse projects' permission. Does the component lead have that? One would imagine so, but sometimes that gets missed (say, if it's a mailing list, for example).
Thanks for the reply!
Yes. I'm testing out this function to inform another business area when an issue is closed. So I've created the component lead account myself and have logged in checked permissions etc.
I've used notification helper as admin, but it never seems to reference component lead. It just says notifications will not be sent to my user because they are not the watcher, assignee or reporter.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Okay, next thought. Is the "close issue" transition in your workflow emitting the actual "Issue Closed" event? If you created it manually, the default event is "Generic Event". This takes place in the transition's post functions.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You got it! Thanks mate. Yes. I added notification on generic event to component lead and it works. It's also reporting status changes to "in progress" etc which I don't want....but it shows my workflow is the problem.
Thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Andrew Martin, if you edit the workflow, you can:
That way, you can send the user notifications just on closure of issues.
If you follow these steps, do not forget to remove 'component lead' from 'generic event' notifications.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Beautiful! Thanks for the details on how to edit. Tested and working as expected now.
Really appreciate it guys.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi folks,
I have a different problem with component lead not receiving mail notifications: what if the component is selected some time after the issue was created? I have a feeling, that selecting the component afterwards does not trigger mail notifications or component lead as assignee.
Does anyone know something about that?
Best regards,
Nadja
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Adding the Component after issue creation should emit an "Issue Updated" event. As long as your notification scheme includes the component lead in "Issue Updated" notifications, it should work.
However, if that's too noisy, and you only want them to be notified on an update that includes a change to the Component, then you'll need to do something trickier. I have ScriptRunner, and so I'd implement a Script Listener that fires for Issue Updated, and checks the changed fields, and issues a custom event "Issue Component Updated", which you can then add to your notification scheme, for just the Component Lead. I have something similar implemented, it only fires an event for "non-trivial" updates. The simple condition is:
event.isSendMail() && changeItems.any {
!['Remaining Estimate','Sprint','Story Points','Epic Name','Epic Link','Time Tracking'].contains(it.get('field').toString())
}
Modified for your case, I think it would be:
event.isSendMail() && changeItems.any {
['Components'].contains(it.get('field').toString())
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear Jeremy,
changing the notification scheme is a great idea! Did not think about that.
Thank you very much!
Best regards,
Nadja
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.