How to create the Automation rule

Urszula Forenc September 27, 2018

Hi,

The purpose is to create an Automation rule (Automation for JIRA app), 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).

Cron expression for this will be 

0 0 1 */3 *

Any help?

 

Thank you

Urszula 

1 answer

0 votes
andreas
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.
September 27, 2018

Hi Urszula,

So you can do this with a rule like this:

  • Trigger: Scheduled trigger with CRON (0 0 0 7 /3 ?) and JQL created < -157w
  • Delete issue

 

You'd also need a second rule that would run a week earlier:

  • Trigger: Scheduled trigger with CRON (0 0 0 1 /3 ?) and JQL created < -156w
  • Send e-mail for deletion

 

So the actual deletion would happen on the 7th of the month, but this is the easiest way to do it with CRON.

Hope that helps.

Cheers,
Andreas

Urszula Forenc October 1, 2018

Hi Andreas, 

we finally did it like this:

0 0 1 */3 * ? for deleting issue and 0 10 12 L-7 3,6,9,12 ? for email :)

BR

Urszula

Suggest an answer

Log in or Sign up to answer