Depends UpOn Value selected in Custom Field get Notification

Kumar
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.
October 24, 2018

Hi Team,

Here i'm creating a notification Scheme so in that one of my requirement is I have a field called "Group"(group picker)  and I have groups in jira  "X,Y,Z " .

 I need only when user select particular group in the field while creating the ticket only that group members has to get notification 

if i select other groups in that field they don't want notification.

example:

I'm creating a ticket I selected "X" in the Group Picker field that group members has to get notification . if I select "Y or Z" for those groups don't required notification

can you please provide the script to achieve this

Thank,

Kumar

 

Thanks,

Kumar

1 answer

0 votes
Neta Elyakim
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.
November 6, 2018

You can do it in by the notification scheme.

Go to your project setting > edit the notification for "Issue Created (System)" > select "Group Custom Field Value" and select your relevant "Group" custom field.

If you want that only this group will get the notification about the issue creating, you need to remove the others roles that get the notification.

For example in my Jira, those are the Notifications for create issue event:

  • Current Assignee (Delete)
  • Reporter (Delete)
  • All Watchers (Delete)

Then you just need to click on delete and add only the group.

You can apply it to the Update event too (or every other event that you want)

Let me know if it solves your problem.

Kumar
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.
November 6, 2018

HI @Neta Elyakim thanks for your responce the thing is those 3 groups will create tickets in jira but only that particular group need notification only that particular group when they create tickets. 

As you suggested if i do that they will get notification for every ticket even though the ticket is not from that group.

In notification scheme I have option to add that particular customfield to get notifiy but in that I need only when the ticket created with the Group "X" created ticket only for those tickets they want notification.

Can you please suggest regards this. 

 

Thanks,

kumar

Neta Elyakim
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.
November 6, 2018

So, you can send a custom email with script runner- post function, on create transition:

Go to your relevant workflow > post functions > Send a custom email and you can use this guide- 

https://scriptrunner.adaptavist.com/5.4.12/jira/builtin-scripts.html#_send_a_custom_email

Set the condition only if the group equal ABC.

Suggest an answer

Log in or Sign up to answer