Script Listener condition to send custom email

manikanta ch November 11, 2020

Hi,

We want to send emails based on the below JQL query condition from the Script Listeners.

project = test AND Status != Closed AND Country = "UK"

Country is an single select list.

Thanks in Advance,

Ch

 

1 answer

0 votes
Daniel Ebers
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 14, 2020

Hi manikanta,

have you already checked the documentation for Script Runner?

https://scriptrunner.adaptavist.com/6.13.1/jira/builtin-scripts.html#_fires_an_event_when_condition_is_true

To my knowledge there is no ready solution - your requirement can be met using Script Runner but it needs some development and testing.

A direct sending of mails is probably not the best approach but you can go with Event > Notification Scheme also to dispatch a mail to the desired recipients.

I have seen that there are some alternative solutions in discussion:
https://community.atlassian.com/t5/Jira-questions/How-to-get-notified-whenever-a-update-is-happen-in-the-filter/qaq-p/1531626

This is a more easy implementation. Having the appropriate JQL query ready you can use a Filter Subscription to get a mail if the query matches. It will list all matching issues.

Here is some more information about it:
https://www.atlassian.com/blog/jira-software/jql-the-most-flexible-way-to-search-jira-3-of-4

Cheers,
Daniel

Suggest an answer

Log in or Sign up to answer