The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

Cron expression for first working day of month

Alexandru Corbeanu
October 6, 2022

Hello,

I am trying to configure a rule on my project to create a task on the first working day of a month, but I am not sure how can I achieve this, or if it can be achieved. Does anyone know how to do it?

2 answers

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

1 vote
Answer accepted
Mayur Jadhav
Community Champion
October 6, 2022

Hello Alex,

You can use Automation Rule to create Task and you can use this 0 0 0 1W*?* cron expression.

You can select trigger as Schedule. screenshot for your reference and you write the automation.

 

 

Screenshot 2022-10-06 161041.png

 

Regards,
Mayur

Alexandru Corbeanu
October 6, 2022

I think this might work, I shall try it and come back to you :). Thanks!

Jack Brickey
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 Champions.
October 6, 2022

I tried that out at https://crontab.guru/  but received an error.

Alexandru Corbeanu
October 6, 2022

I confirm that also in JIRA throws an error when configuring CRON with 0 0 0 1W*?*

Annotation 2022-10-06 161955.png

Mayur Jadhav
Community Champion
October 6, 2022

Hello @Alexandru Corbeanu Sorry can you please try 0 0 0 1W * ? 

Screenshot .png

Like # people like this
Alexandru Corbeanu
October 6, 2022

It seems fine right now. Thanks!

Mayur Jadhav
Community Champion
October 6, 2022
0 votes
Jack Brickey
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 Champions.
October 6, 2022

Hi @Alexandru Corbeanu , may I ask why you are electing CRON rather than the simple config? Maybe there is more to your CRON?

BD6183CA-475B-4A01-A46F-BD0FBE5F0313.jpeg

Alexandru Corbeanu
October 6, 2022

First day of month is considered as "First working day of month" ? Because that is what I am looking to achieve. For example, if 1st of November would be Sunday, I want the task to be created on 2nd (Monday), because that would be the first working day.

Jack Brickey
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 Champions.
October 6, 2022

Ah...yes. Sorry I missed that important bit. I am not immediately sure but will spend a few moment to give it a go.

Karla N_ Lopez
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!
April 19, 2024

Hey any success with this?

DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events