SOLVED: Stop rule execution if no issues found on scheduled job Edited

Hi Team,

I have written a rule that runs once a day using a JQL query and then sends an email.

I use 'Process all issues produced by this trigger in bulk' so that I get an #issues list in my 'send email' action and can happily iterate over them to create a nice HTML email with a table of issues...

However, I want to suppress the email sending if there are no issues...

I cannot find any way of detecting when there are no results...

What I tried was adding the same JQL into a 'new JQL' condition in the hopes that this would then fail and stop the email send...

However, this does not work. The audit log for the rule when I run it manually shows:

SCHEDULED  (Optimised)

No related issues could be found.


Successfully sent email.

The overall status of the rule is 'NO ACTIONS PERFORMED'...but the empty email was still sent!

The rule logic is: Find me all overdue issues and send email once a day if you find any issues...

Any help gratefully received ;)


Simon Brooke

Addendum: Just to further confirm it seems that my 'If' condition doesn't even get executed, possibly because there are no issues returned by the scheduled JQL... But that should surely automatically fail the JQL if condiiton...

2 answers

1 accepted

1 vote
Accepted answer
Scott Harwood Community Champion Jan 14, 2018

Hi Simon,


You can use a compare condition.

Screen Shot 2018-01-15 at 11.31.28 am.png



Awesome, many thanks Scott

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted 11 hours ago in United States

Administrators Cleanup

Good morning, After a long weekend cleaning up, I am still in the cleanup mode 😊. I am curious to know: When do you feel the urgency to cleanup your Atlassian Tools? How many times do y...

16 views 0 0
View post

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