Automated mail after receipt of a ticket

Jens Prokoph
Contributor
January 5, 2025

Is it possible to include a mail notification in the automation when a certain time for the ticket receipt arrives? More precisely: an e-mail is to be sent to the processor during the on-call time from 18:00 to 09:00. I have already set up the classic notification, but I have not yet found the condition for the time Can you help?

2 answers

0 votes
Trudy Claspill
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 5, 2025

Hello @Jens Prokoph 

Let me see if I understand your scenario. Tell me if the following is correct.

WHEN: a new ticket is created

IF: it is created outside of normal business hours

THEN: send an email

 

If that is correct, I have a couple of questions.

1. To whom should the email be sent? Is that person already specified in a field in the issue, like the Assignee field?

3. What are your normal business hours? What timezone applies? Is that normal business hours for every day of the week, or are the hours different on the weekends?

Jens Prokoph
Contributor
January 6, 2025

The scenario is correct.
The business hours: Monday to Friday 8am - 4:30pm (GMT+1)
At all other times, there are colleagues on standby. I write to them by e-mail using their e-mail address.

Trudy Claspill
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 6, 2025

It is not possible to use the Project's Notification configuration to set up a notification based on the time the issue is created.

You could potentially create an Automation Rule triggered by the creation of the issue, with the rule including steps to check if the current time is outside the normal business hours, and then use the Send Email action to send the email.

I have not tried to work out the details of the steps to compare the current time to business hours. I believe you would need to use date/time formatting commands against the now smart value as well as the timezone conversion function to extract the day of week and time from now, and then potentially set up some IF/ELSE constructs to compare that data to your business hours to determine if the issue has been created outside of them.

Note that you would need to look at the more extensive formatting options listed in the Java documentation page linked at the bottom of the Formats table in the date/time formatting commands link I provided above.

0 votes
Valerie Knapp
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 5, 2025

Hi @Jens Prokoph , thanks for your post.

Please can you clarify what you'd like to achieve? 

You have already a notification. 

You want to create an automation but what should it do? 

The trigger is? The ticket creation? 

Is there a condition? The on-call time? 

Is the purpose of the automation to send an email? That is the only action? You are asking if it's possible to have a timestamp to show what? When the ticket was created? 

Typically with automation posts, we would ask you to show us what you already have and then we assist with troubleshooting. Can you please post the rule if you've already started building it? Or create a draft if not? 

Thanks

Jens Prokoph
Contributor
January 5, 2025

the automation should only send an e-mail.
However, the trigger should only take place outside business hours.

This means that the colleague should not have to check the system permanently during the night but will be notified by e-mail

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