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

How to create the Automation rule

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 Community Leader Sep 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

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
TAGS
Community showcase
Posted in Jira Core

How to manage many similar workflows?

I have multiple projects that use variations of the same base workflow. The variations depend on the requirements of the project or issue type. The variations mostly come in the form of new statuses ...

4,001 views 11 5
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