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

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Script Listener condition to send custom email

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 Community Leader Nov 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
TAGS

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you