Forums

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

Business Hours in Automation

Marc Blascak October 20, 2021

I have created some rules to run on a daily basis. However, i only want them to run during business hours and days (Mon-Fri 8A-5P).

 

I cannot find any reference to using CRON expressions, JQL or scheduling to set this up.  I have searched the online documentation and have come close (Smart values to calculate business days, and difference calculations) but nothing that works in scheduling automation tasks.

thanks for assistance!

1 answer

1 accepted

2 votes
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.
October 20, 2021

Hi @Marc Blascak 

When adding the scheduled trigger to your rule, did you note this link to documentation on CRON expressions:

https://support.atlassian.com/jira-software-cloud/docs/construct-cron-expressions-for-a-filter-subscription/

Please take a look to see how that helps.  Thanks!

Kind regards,
Bill

Marc Blascak October 20, 2021

i did, and reviewed other trigger statements and scheduling options from the CRON, JQL and other pages, but there is no mention of how to fine tune it down to business hours.

 

there were references on using smart tags to do some calculations taking business days and hours into account, but nothing that would help in scheduling automation or trigger events.

I do appreciate your quick response!

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.
October 20, 2021

When you note "business hours" do you mean a fixed window you want or the range of hours defined in Jira?  If you are defining the range you could select that yourself in the expression.

If you need something with holiday handling, you may want to build that into the rule.

And, I find the CRON in the scheduled trigger a bit finicky, so a work-around is to just set a simple hourly schedule and add a condition to only continue when inside of your business hours when checking {{now}}

Suggest an answer

Log in or Sign up to answer