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

0 votes
Answer accepted
Mayur Jadhav
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
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
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
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 Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 6, 2022

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

Screenshot .png

Like Alexandru Corbeanu likes this
Alexandru Corbeanu October 6, 2022

It seems fine right now. Thanks!

Mayur Jadhav
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 6, 2022
0 votes
Jack Brickey
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
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
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
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?

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