Forums

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

Automation needs to run only on Saturdays in JSM Cloud, but there is no option for that?

Berik Irgebayev
Contributor
November 11, 2024

Hi,

I was asked to create an automation that would only run (auto-assign) every saturday from 17:00 till 23:30. However, I don't see an option or a way to achieve that. 

It is either on specific date, or specific timeframe, or specific time in seems. I clicked around on conditions but none seem to fit what I need it to do. 

Is it possible? If so, how do I achieve that?

2 answers

1 accepted

0 votes
Answer accepted
Dan Breyen
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
November 12, 2024

Hi @Berik Irgebayev Cron is a time-based syntax for that Jira can use for scheduling jobs to run at a specific time or at specific intervals.  

Here's a definition of Cron

Cron on Wikipedia 

I use this page to help me figure out my Cron Expression:

cron-expression-generator 

but there a plenty out there.

As Tuncay mentioned, if you click on the Advanced tab, you can add a cron expression to say when you'd like your job to run.

Berik Irgebayev
Contributor
November 12, 2024

wow, You learn something new every day. Thank you

2 votes
Tuncay Senturk
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
November 12, 2024

Hi @Berik Irgebayev 

You can schedule an automation rule to run weekly on a specific day, like Saturday, but there isn’t a built-in way to restrict it to a specific time window within that day (17:00 to 23:30). However, you can (to some extent) achieve this by combining a scheduled trigger with conditional checks within the automation. 

Set up a schedule trigger to run every hour on Saturdays, (select advanced and type below cron expression 

0 17-23 * * 6

This checks every hour on Saturdays between 17:00 and 23:00.

Then add a condition to restrict the time window

 {{now.format("HHmm")}}

  
Condition: is less than
  
Value: 2330

and the auto-assign action to run within this time window.

I hope that was helpful

 

 

Berik Irgebayev
Contributor
November 12, 2024 edited

Hi @Tuncay Senturk ,

Thanks for taking the time to answer. Not sure what your mean by "cron expression", but I figured I will keep it simple and simply make it run on Saturday. Even that is not something I can easily find. Seems like I will have to search up JQL condition of sorts...?

Tuncay Senturk
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
November 12, 2024

By default it shows you the Basic (where you select days, hours etc). If you select Advanced, you'll see cron expression there

Berik Irgebayev
Contributor
November 12, 2024 edited

I think I clicked about everywhere to find that Advanced option but really can't see it. Is it available in JSM cloud?

Screenshot 2024-11-12 151004.png

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