Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,460,380
Community Members
 
Community Events
176
Community Groups

Component lead not receiving notifications

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?

2 answers

1 accepted

1 vote
Answer accepted

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.

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

 

 

@Andrew Martin, if you edit the workflow, you can:

  1. click on the transition (arrow) which goes to the Closed status, 
  2. click on post-functions
  3. hover the mouse cursor over the post function that fires the 'issue closed' event and click on Edit (pencil icon)
  4. change the event fired from 'generic' to 'issue closed'.

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.

Beautiful! Thanks for the details on how to edit. Tested and working as expected now.

Really appreciate it guys.

 

 

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

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())
}   

Dear Jeremy,

changing the notification scheme is a great idea! Did not think about that.

Thank you very much!

 

Best regards,

Nadja

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events