Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Cron expression for quater

Hi, 

how can I write a cron expression for:

Every first day of a quater ?

The purpose is to create an Automation rule, where issues older than 3 years must be deleted, sheduled every first day of a quater (1 Jan, 1 Apr, 1 Jul, 1 Oct). It also need to send email, that this deletion will ocurre (one week before the deletion).

Thank you!

2 answers

1 accepted

0 votes
Answer accepted

Hello Urszula, 

A crontab entry for the first day of every quarter:

0 0 1 */3 *

source: https://crontab.guru/every-quarter

Tom 

Hi, it doesn't work...

Capture.JPG

BR

Urszula

Ok, it needs "?" on the end of the crone expression - that means, that the day of week (Mon, Tue...) doesn't matter.

@Urszula Forenc  Hi Urszula!  Did that expression work? 

I'm also using Automation for JIRA... but the expression above seems to be missing a leading "0" (since per JIRA documentation, the seconds part of the string is required). 

I'm building a quarterly automation, and this is what I've come up with....

0 0 0 15 */3 ?

which in theory should next run July 15th 2019.  

Let me know if the extra zero wasn't necessary! Thanks   :) 
 

Hi Rosa,

I use it: 0 0 1 */3 * ?

I've found very usefull website: cronmaker.com - you can test there your crones.

BR

Urszula

Like Rosa M Fossi likes this

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Posted in Jira Software

Presenting the "Best of 2020" Jira Software roundup!

Catch up with Atlassian Product Managers in our 2020 Demo Den round-up! From Advanced Roadmaps to Code in Jira to Next-Gen Workflows, check out the videos below to help up-level your work in the new ...

4,922 views 6 15
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you