How to set up reminder emails on Tickets
Asked by Jon Correa:

Hey friends,

I'm looking to get a couple reminder emails set up, but I'm having trouble wrapping my brain around the smart values of automation to get this going.

1. The first one is setting up an email for tickets in the "Waiting for customer" state, after 3 business days send an email to the customer reminding them to check their ticket.

2. The other one is for tickets in the "Waiting for support" state, after 5 business days send an email to both the customer and the assignee that nothing has been changed and needs to be revisited.

Thank you for your help in advance!


Answers:
author: Trudy Claspill
body: Hello [@Jon Correa](/t5/user/viewprofilepage/user-id/4917326)

Can you show us what you have set up so far?

What part specifically is giving you trouble?

comments: author: Trudy Claspill
body: Hello [@Jon Correa](/t5/user/viewprofilepage/user-id/4917326)

Thank you for the additional information.

However, I don't think the rule you have started to construct will meet your requirement. Or I haven't understood your requirement.

As I understand it you want two rules:

1. when an issue has been in the "Waiting for customer" status for 3 business days then you want to send an email
2. when an issue has been in the "waiting for support" status for 5 business days then you want to send an email.

In that case, you do not want to use an Issue Transitioned trigger. That would run the rule when the status is changed. At that point the status of the issue has just been changed. The rule will never be triggered based on the issue having been in that status for days.

Instead you will need to use the Schedule trigger to periodically check for issues that have been in the specified status for the specified time period.

<https://support.atlassian.com/cloud-automation/docs/jira-automation-triggers/#Scheduled>

To get that set up correctly I have a few more questions.

When you say the issue has been in that status for X days do you want the rule to run only when the issue has been in that status for exactly X days? What if the issue has been in the status for X+1 days or longer?

An issue can potentially remain in a particular status and still be getting updated in other ways (i.e. comments added). Do you only care about whether or not the status has changed, or would it make a difference if other updates had been made during that time?

Here is a starter example of the trigger that would be used if you answered the above questions with "only exactly X days" and "only care about status changes".

![Screenshot 2024-04-05 at 10.19.25?AM.png](https://community.atlassian.com/t5/image/serverpage/image-id/316739i9230BAD782087A63/image-size/large?v=v2&px=999 "Screenshot 2024-04-05 at 10.19.25?AM.png")

You use the JQL statement in the trigger to find all the issues you want. In this case you want issues that are currently in a specific status and where that status has not been changed in the past 3 days.

You would want to make sure the checkbox below the JQL statement is **unchecked**.

You would follow this trigger with the action to Send Email. That action would execute for each issue found by the JQL in the trigger. The Send Email action will let you choose from the user picker fields in the issue to select the email recipients.

![Screenshot 2024-04-05 at 10.23.53?AM.png](https://community.atlassian.com/t5/image/serverpage/image-id/316740i60C27DCE4B47FCF5/image-size/large?v=v2&px=999 "Screenshot 2024-04-05 at 10.23.53?AM.png")


author: Joseph Chung Yin
body: [@Trudy Claspill](/t5/user/viewprofilepage/user-id/3569011) -

Very well stated. This was also what I was going to suggest to use Scheduled trigger event for the automation.

Best, Joseph


author: Jon Correa
body: [@Trudy Claspill](/t5/user/viewprofilepage/user-id/3569011) [@Joseph Chung Yin](/t5/user/viewprofilepage/user-id/396739)

Thanks for your response, unfortunately I don't have anything beyond:
> Issue Transition from Open to Waiting for Support.
>
> ![itsm.png](https://community.atlassian.com/t5/image/serverpage/image-id/316736iFFB47ABBDCBF0CB2/image-size/large?v=v2&px=999 "itsm.png")

I can't figure out how to use smart values to basically create:
> If: Issue Transition is on/over 5 Business Days
>
> Then: Send email to Assignee and Customer (with custom text saying please check ticket or w/e)

I don't know if it's just me, but it's hard to find the correct syntax for doing this.


author: Joseph Chung Yin
body: [@Jon Correa](/t5/user/viewprofilepage/user-id/4917326) -

I agreed with [@Trudy Claspill](/t5/user/viewprofilepage/user-id/3569011) ask for clarification. What is your ask on the problem with smart value for your automation rule.

Please advise, so we can further assist you better.

Best, Joseph Chung Yin

Jira/JSM Functional Lead, Global Technology Applications Team

Viasat Inc.


Tags: cloud

jira-service-management

jira-service-management-cloud