Notifications for users in a project role on a specific project

Hi all,

I've got the following scenario:

I want to notify users within a specifc role on a specific project that an issue has been created. We've changed email systems at work so where we previously had the default assignee as a user with the group mailing address (so everyone in the project team got notified) we can no longer do that [until a fix is found].

Let me explain by way of an example:

I want to notify users of Project A in a Role A that a new issue has been created. So I created a notification scheme specifically for Project A where Role A is notified. This is a generic project role so it is used by Project A, B, C, D, etc.

Unfortunately this setup notified the users of Role A in every project it is used. This seems kind of illogical to me. Surely the idea of assinging a user to a specific project role for a specific project, and making sure that project has a notification scheme that is also specific to that project means that only the users in that role, for that project and that notification scheme should notified?

Any solutions to my problem would be welcome. For the time being I've just used the Specific User field, but isn't the most elgant or managable solution.

3 answers

1 accepted

1 vote
Accepted answer

I'm not quite sure what is wrong here. It is complex, but it is very logical, and it's doing exactly what it should do.

Your notification scheme says "notify users in role A when issues in the project are created". Note that it does NOT say "in project A", it really does just say "users in role A get created mails"

If project A is then configured to use that scheme, it will send create mails to people who are currently in role A in that project.

It really doesn't sound right that it's notified everyone in Role A for other projects - are you saying that "issue 123 created in project A" has gone to a person in role A in project B (and they are definitely NOT in role A for project A)?

Also, have you mixed up roles and groups? And are you using groups in roles in project A, could that be triggering the mails?

AHA!! Nic you've done it again

Also, have you mixed up roles and groups? And are you using groups in roles in project A, could that be triggering the mails?

Yes, the problem is that the 'jira-users' group, which everyone is part of seems to be assigned to all project roles.

Now you've said it I feel foolish but it isn't until someone points it out do you realise these stupid mistakes.

So now I've looked this I think it should work, as long as I removed the 'jira-users' group from Role A, in the permission scheme created for and only used by Project A. Does that sound right to you?

Yes, I think just removing the jira-users group from the role will fix it.

The cross-project mailing made me suspect it was a simple group usage lurking - I've lost count of the number of times I've kicked myself for forgetting that groups can be added to roles as well as individuals...

Thanks Nic, much appreciated as always. As soon as you said it I knew that was what the issue was - this is wwhy I like Atlassian Answers!

Is this still valid for the last releases of Jira? 

I cannot assign a group to a project role. Seems like it was removed.

 I have this same issue - I would like for Project Admins (role) on PRoject A to be notified if an issue is created.  If I add project admins to the notification scheme for this event, it notifies ALL project admins on ALL projects - how do I constrain by Project Admins on the current project?

That's not what my Jira systems do.  I get project role notifications.

When you say "add project admins to the notification scheme", are you sure you are setting the role and not a group?

Thanks for your response, I just wound up creating a group for the admins and then adding that group to the notification scheme for all the events.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Feb 13, 2019 in Jira

Make your Atlassian Cloud products more secure: our NEW admin security guide

Hey admins! I’m Dave, Principal Product Manager here at Atlassian working on our cloud platform and security products. Cloud security is a moving target. As you adopt more products, employees consta...

599 views 0 12
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