Jira Automation - Scheduled task not sending emails.

Gavin
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.
July 3, 2021

Hi All,

 

Using jira automation I have done the following:

  1. added a schedule task
    1. settings
      1. Fixed rate of every > 2 days
      2. When rule executes > run a JQL search and pass results to subsequent conditions and actions
        1. JQL > labels = request AND status != closed
          1. Finds all items labeled request that haven't been closed
          2. If issues found go to next steps (send email)
      3. Only include issues that have changed since the last time this rule executed > Disabled (was enabled might be the issue, by disabling it will it work?)
  2. then send email
    1. this works if if I run it manually.

Issue:

  • email doesn't send out after 2 days when the result shows an issue found.

 

2 answers

0 votes
Alex Koxaras _Relational_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 4, 2021

Hi @Gavin

Your rule looks solid, I would do the same, and leave uncheck "Only include issues that have changed since the last time this rule executed" option. If you go on the trigger, it will guide you on when the rule is going to run for the very first time, as well as all the next runs. Keep in mind that if the JQL yields no results, then no email is going to be sent out.

scheduled emails.png

 

However you could also use subscription filter instead of an automation:

  • Create your filter " labels = request AND status != closed"
  • Save your search with a name
  • Go to Details > New Subscription
  • Choose recipients
  • Schedule you filter
  • Check "Email this filter, even if there are no issues found" to do whatever it says that it does

subscription.png

 

Hope that helps!
Alex

0 votes
Gavin
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.
July 4, 2021

Does anyone have a reason why this isn't working?  Is there something else that needs to be done?

Suggest an answer

Log in or Sign up to answer