Forums

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

Cron Expression in Automation Rule

Nicole Gosling
Contributor
January 20, 2022

Good morning.

I have an automation rule that includes the following cron expressions and although I've read the documentation,  Construct cron expressions for a filter subscription | Jira Software Cloud | Atlassian Support I am not sure how to read it.  All I got from 0 0 6 1/1 * ? * is 6:00 am.Cron Expression.png

Thanks,

Nicole

4 answers

1 accepted

4 votes
Answer accepted
Tim Perrault
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.
January 20, 2022

Hi @Nicole Gosling,

 

What is the end result you are looking for? The expression is saying run everyday at 6:00 AM regardless of month or year.

 

Thanks,

Tim

Tim Perrault
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.
January 20, 2022
0 0  6  1/1 * ? *
| |  |   |  | | | 
| |  |   |  | | +-- Year              (range: 1970-2099)   *= All years
| |  |   |  | +---- Day of the Week   (range: 1-7 SUN-SAT) ?= No specific month
| |  |   |  +------ Month of the Year (range: 0-11 JAN-DEC)*= All months
| |  |   +--------- Day of the Month  (range: 1-31)        1/1 = run everyday
| |  +------------- Hour              (range: 0-23)
| +---------------- Minute            (range: 0-59)
+------------------ Second            (range: 0-59)
Like # people like this
Nicole Gosling
Contributor
January 20, 2022

@Tim Perrault thanks.  I am a new Jira Administrator taking over for someone who left the company.  You answered my question perfectly.  I don't want to change it I just didn't know how to read the expression.

I will continue my learning :D

Thanks,

Nicole

Like John Funk likes this
Tim Perrault
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.
January 20, 2022

Awesome glad I could help. Have fun learning :)

Like John Funk likes this
0 votes
venkata gopi February 6, 2022

Hi Guys,

May know the details of this : 0 0 0/1 1/1 * ? *

saket rustagi May 9, 2022

I think this means rule will run - Starting 1st Jan Midnight, it will run every one hour for all days, all months and all years.

0 votes
John Funk
Community Champion
January 20, 2022

Hi Nicole,

If you click on the CRON Expressions documentation link in page, it will help guide you and describe the individual items. 

Nicole Gosling
Contributor
January 20, 2022

@John Funk thanks!  I did review the documentation however it didn't make sense to me.  Sorry I am new to Jira so a little green right now :)  I see @Tim Perrault provided a response. Thanks!

John Funk
Community Champion
January 20, 2022

No worries -  I am glad Tim was able to provide a more detailed response.  :-)

0 votes
Pramodh M
Community Champion
January 20, 2022

Hi @Nicole Gosling 

Try with this for everyday at 6 AM

0 0 6 ? * *

Let me know if this works or let me know at what time you need to run the automation

Thanks,

Pramodh

Nicole Gosling
Contributor
January 20, 2022

@Pramodh M thanks for getting back to me so quickly.  Sorry for the confusion, I don't want to change the cron expression I just don't know how to read it.

What does 0 0 6 1/1 * ? * mean.

Thanks,

Nicole

Nicole Gosling
Contributor
January 20, 2022

@Pramodh M no need to respond as @Tim Perrault answered my questions.  Thanks for your help!

Pramodh M
Community Champion
January 20, 2022

Yeah Got it @Nicole Gosling 

Starting from 1st day for every month for every day at 6 AM

Pramodh M
Community Champion
January 20, 2022

Sorry I didn't see anyways 😃

Pramodh M
Community Champion
January 20, 2022

I was doing my own research in my mobile and answered it @Nicole Gosling 

venkata gopi November 15, 2022

Hi Guys, 

I found the solution for this every day and every 5min the filter trigger 

 

Thank you

Venkata Gopi

Like John Funk likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
TAGS
AUG Leaders

Atlassian Community Events