Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Automating Rule to send email when item has been sat in same status for more than 3 days

Emily Bleything
Contributor
September 15, 2021

Hello, 

I am trying to set up a rule that sends an email to certain contacts when an item has been sat in a status for longer than 72 hours. The rule is working, however  I get an individual email for every item. Is there a way to get Jira to publish this information in one email? 

Thank you, 

Emily

automation part 2.PNGautomation part 1.PNG

3 answers

3 accepted

4 votes
Answer accepted
John Funk
Community Champion
September 15, 2021
Emily Bleything
Contributor
September 15, 2021

Thank you John.

 

Is there a way to include custom fields using lookupIssues?

 

Thanks, 

Emily

Like John Funk likes this
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.
September 15, 2021

Hi Emily,

Yes, and...to John's answer: custom fields are not yet supported by the Lookup Issues action.

A more complicated work-around for this is to call the REST API to run your JQL from the automation rule, and then parse the response with text and list functions to get what you need.

Kind regards,
Bill

1 vote
Answer accepted
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.
September 15, 2021

Hi @Emily Bleything 

One way to do this with automation is to use the Lookup Issues action.  In that case, you would change your scheduled trigger to just be the schedule (not the JQL).  For example:

  • trigger: scheduled (no JQL)
  • action: lookup issues using your JQL
  • action: send the email

One advantage of this approach is you can format the email as you wish and provide extra information.  Please look here for more information about Lookup Issues: https://support.atlassian.com/jira-software-cloud/docs/smart-values-general/#Smartvaluesgeneral---lookupIssues--

Kind regards,
Bill

Emily Bleything
Contributor
September 15, 2021

Thanks Bill! This has worked :)

Like Bill Sheboy likes this
1 vote
Answer accepted
Ravi Sagar _Sparxsys_
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.
September 15, 2021

Hi @Emily Bleything 

You can try to use Filter subscription to achieve that.

Ravi

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events