Forums

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

schedule an automation rule only on weekdays

Karthik Sriraman
Contributor
April 1, 2020

Hi Team ,

 

We are currently using Jira cloud based Service desk . And there is a need for us to schedule an automation rule only on weekdays . Is there an app that does this for us in Jira Cloud ?

 

 

Many thanks in Advance.

Regards,

Karthik

3 answers

1 vote
Richard Bouchacourt
Contributor
April 1, 2020

Hi, @Karthik Sriraman ,

You could test this way to execute your rule during weekdays:

Capture d’écran 2020-04-01 à 10.47.05.png

Then, add or copy the condition for the other 4 weekdays.

Documentation could help you :

Date Formats : https://support.atlassian.com/jira-software-cloud/docs/smart-values-date-and-time-functions/

and maybe Smart values - text fields (I didn't use in my example : https://support.atlassian.com/jira-software-cloud/docs/smart-values-text-fields/

 

Let me know it the rule rules :)

Riley Mehl
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 26, 2023

I am going to try this rule. You can also format it to do "does not contain" Saturday and Sunday to reduce the amount of duplicate rules you have to create! 

Melanie Rusch
Contributor
November 4, 2024

Hi @Richard Bouchacourt 

maybe you can help me? I used your condition in one of my automations and it does not work. I have the details here: Automation with condition for specific weekday fai...

Would be very thankful if you can have a look at my automation.

Thank you and kind regards

Melanie

Melanie Rusch
Contributor
November 4, 2024

Got an anwer :) Used the wrong smartvalue. Thank you!

0 votes
Kristian Walker _Adaptavist_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
April 1, 2020

Hi Karthik,

Thank you for your question.

I can confirm the link provided by Elifcan relates to the ScriptRunner for Jira Server documentation and not to ScriptRunner for Jira Cloud.

However, I can confirm that there are two ways to achieve you requirement with ScriptRunner for Jira Cloud and the first one is to use an Escalation Service as Elifcan mentioned and you can see the documentation for Escalation Services in ScriptRunner for Jira Cloud here.  The difference between the server version is that in Cloud you specify your schedule via a GUI rather than a Cron expression.

The second way is to define a Scheduled Job where you can specify the schedule based on a GUI that a custom script which you provide runs on and you can see the documentation for this feature here.

I hope this information helps.

Regards,

Kristian

0 votes
Elifcan Cakmak
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.
April 1, 2020

Hello,

Script runner plugin has a feature called Escalation Service. You can run cron jobs with this feature. Script Runner is available for Jira Cloud. Although I never tested it on Cloud, I believe this would work for your needs. You can install with a trial license and check it out.

https://scriptrunner.adaptavist.com/latest/jira/escalation-service.html

Regards,

Elifcan

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events