Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 21:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.

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

Automation emails not triggering

Deepak Singh April 11, 2022

Hi,

I have created an automation where if my issues aren't updated for 3 days then an email would be triggered to inform this. I am attaching here a screenshot for the same. 
The hindrance that I facing here is that I am not getting emails. Help required!

Screenshot 2022-04-12 100856.png

2 answers

1 accepted

2 votes
Answer accepted
Anzar
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.
April 11, 2022

Hi Deepak,

Are you getting any errors in the audit log?

The email not being triggered to you can be due to multiple reasons and can be found in the automation audits.

To search further, please click on validate query to verify if there are issues existing for your query(for which you want an email).
I personally would have written

"updated <=-3d"


Regards,

Anzar

Deepak Singh April 12, 2022

Hi Anzar, 

I did validate the query and it said 0 issues found.
Screenshot 2022-04-12 131352.png

The audit log says No actions performed.

Screenshot 2022-04-12 131445.png

The logic that I wanted to be workuing here is if the issue is not updated with 3 days then an email is to be triggered. What would be logic?

And for the current scenario my issues have not been touched when created(5days ago) so any email would have been triggered??

Like Anzar likes this
Deepak Singh April 12, 2022

I got the emails, I included the project name in the logic and changed the logic updated<=3days. Thanks Anzar

Like Anzar likes this
Anzar
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.
April 13, 2022

Glad the solution worked :)

Like Anzar Khan likes this
0 votes
Bill Sheboy
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.
April 12, 2022

Hi @Deepak Singh 

Two questions about your use case:

  1. Do you really want to check this every 5 minutes?
  2. Are you getting an email for each issue which meets your criteria?  Would you rather get one email for the issues meeting this criteria?

I ask these questions as such reminder rules are normally run once per day, not every 5 minutes, and so I wondered if this was too "noisy" for your needs.

Next, your scheduled trigger contains JQL and that means each matching issue will send an email.  Another way to solve this and to only get one email is to use the Lookup Issues action.  For example:

  • trigger: scheduled once per day, with no JQL
  • action: lookup issues, with JQL something like this...
    • project = myProjectName AND updated <= 3d AND statusCategory != Done
    • Please substitute in your project name.
    • I added a check to prevent "done" issues from being included
  • advanced compare condition: to check if there are any issues to send
    • first value: {{lookupIssues.size|0}}
    • condition: greater than
    • second value: 0
  • action: send an email with the list of issues
These issues have not been updated in the last 3 days:

{{#lookupIssues}}
* {{key}}: {{summary}}
{{/}}

 

Kind regards,
Bill

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events