Help with automation

Ernestas Nikiforovas May 21, 2023

Hello,

Need help with my automation. Have configured SLA calendar: sla cal.PNG

Created automation:

sla rule.PNG

Theoretically this automation should send emails if issue was created  after business hours, however:

rule applied.PNG

So anyone have any ideas why my automation does not work correctly?

 

2 answers

4 votes
Kateryna_v_SaaSJet_
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
June 29, 2023

Hi @Ernestas Nikiforovas 

You should try to do what Karim ABO HASHISH already wrote, but as an alternative, you can set up SLA in a more user-friendly interface for new users with the SLA Time and Report for Jira add-on.

Creating a new calendar with Non-working hours and weekends will be easier. In our case, you can set it as 24/7 work hours with a break from 8 AM to 6 PM.

0.png

Select this "Out of work hours" Calendar in the SLA configuration and set the SLA goal with the "Notify..." action. The SLA will count exactly according to the calendar on your Non-working hours and days and send a notification in time that you put as a trigger in SLA goal.

0_2023-05-10_21-47-25.png

There is currently a 30-day trial period, so it won't cost you anything to try the app.

1 vote
Karim ABO HASHISH
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 22, 2023

hi @Ernestas Nikiforovas 

Welcome to the community.

To make it Simple, Each SLA Corresponds to a customfield. in order to achieve your goal please follow the below steps.

  1. You need first to get the customfield id that is mapped to your out of busines hours SLA. you can achieve that using JIRA REST APIs
    https://your-site-name.atlassian.net/rest/api/latest/issue/Putyourissuekey

    You should find it as below

    SRYdhb8f2Y.png
  2. For The Automation Rule Condition, please use the advanced compare function to check if {{issue.customfield_putyourfieldidhere.ongoingCycle.withinCalendarHours}} is true.

    NkWGf2y2kg.png
  3. Publish and Test your Rule.

Good Luck and let me know how it went for you.

Cheers,

Karim

Suggest an answer

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

Atlassian Community Events