Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Use condition in notification scheme

AMRANE Hacene April 3, 2012

Hi all;

Any one know is it possible to use conditions (of groups, assignee,...) in a notification scheme?

thank's in advance.

6 answers

1 vote
Test User
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 25, 2012

What about email subscriptions?

You can setup a search filter (such as unassigned) and have the email subscription go out to whoever is interested.

0 votes
Jackson Ong July 15, 2015

Hi,

 

I am in need of this as well. I have checked script runner, but it doesnt meet the needs. I am running a helpdesk. And currently users email issues in to log issue, this is not a problem. So he will receive and email notificaiton of the issue, but when he replies to the issue, he receives an extra email of his reply as he reply to jira.

 

The condition that we want is 

if Comment is added via email, no notification

if comment is added via jira, a notification will be receive.

this is is so that we do not receive duplicated emails.

 

Any idea how I can do this?

 

0 votes
Bhupesh Nagda
Contributor
November 3, 2014
0 votes
AMRANE Hacene April 3, 2012

Sory, my objective is to use conditions as :

- if assignee in group X notif (using the notification scheme) group X

- if assignee in group Y notif (using the notification scheme) group Y

0 votes
Dieter
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 3, 2012
I think what you want is only possible by implementing your own notification event type and registering the implementation in notification-event-types.xml. If you have the Jira source code the closest implementation is the one for group or group custom fields. You would just have to add checks if the current user is the assignee of the issue and then use the results of the inherited methods
Radu Dumitriu
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 3, 2012
Dieter
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 5, 2012
But of course this would just handle the case you commented in Nic's answer
Dieter
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 6, 2012
There is a commercial Jira extension (Minyaa) which let's you add your own notification types as plugins, please check http://www.minyaa.com/documentation/3.2/Features/ModuleCore/NotificationTypeProvider/index.html I have not used that yet but from the description it seems to make possible what you need. You just have to create your own implementation of getRecipients()
0 votes
Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 3, 2012

Yes. The point of a notification scheme is simple - it breaks down to

If event X happens, then mail people matching condition Y.

Y can be assignee, groups, roles, reporter and so on, and it's multiple ("assignee and reporter and everyone in role of developer" for example)

AMRANE Hacene April 3, 2012

Sory, my objective is to use conditions as :

- if assignee in group X notif (using the notification scheme) group X

- if assignee in group Y notif (using the notification scheme) group Y

Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 6, 2012

Um, I don't understand that. Both of your statements can only ever resolve to false, so there's no real problem - just don't notify anyone.

Dieter
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 6, 2012
I understood it as follows a d my answer is based on that understanding: the recipient list for the notification should be all members of group x like in the standard notification type "group x" but only if the current assignee is in group x. If the assignee is not member of x, the recipient list should be empty. The same for group y. So if the current assignee were member of x and y the notificstion would becsent to union of group x and y. If the assignee is neither member of x nor of y there wouldn't be any notification.
JamieA
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 7, 2012

Best thing would be to add a groups custom field to the issue and use that in the notif scheme. Then you will need to deal with setting the custom field to the groups according to whatever criteria you need, which is easily done in a script or plugin.

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, atlassian government cloud, fedramp, webinar, register for webinar, atlassian cloud webinar, fedramp moderate offering, work faster with cloud

Unlocking the future with Atlassian Government Cloud ☁️

Atlassian Government Cloud has achieved FedRAMP Authorization at the Moderate level! Join our webinar to learn how you can accelerate mission success and move work forward faster in cloud, all while ensuring your critical data is secure.

Register Now
AUG Leaders

Atlassian Community Events