How do I create recurring issues with Automation for JIRA?

Andreas Knecht Community Champion Sep 19, 2016

I need to create the same issue once a week. How do can I do this using Automation for JIRA?

1 answer

1 accepted

0 vote
Andreas Knecht Community Champion Sep 19, 2016

This is such a common use case that we included a pre-defined template called "Recurring tasks". If you use this to create an automation rule, you'll get:

Project automation - Code Barrel JIRA 2016-09-20 11-25-42.png

This uses 2 rule components:

  • A scheduled trigger that runs on the first of the month using a CRON expression
  • And a 'Create issue' action that creates an issue when the trigger runs.

Using the create issue action, you can set any field necessary on the newly created issue.  You could also include other actions to assign the issue to a user etc.

 

Thanks for your answer.

I've tried to create a rule to update a set of issues defined by a JQL query and when I choose to update an issue's Due Date it can only set a specific Date. Is it possible to shift the Due Dates, say, 1 weak ahead?

Andreas Knecht Community Champion Jan 23, 2018

Hi Andrey,

yes, you should be able to achieve this with date functions and smart values: http://docs.codebarrel.io/automation/index.html#/smart-fields/working-with-dates?id=date-functions-1

 

You'd probably need to set the due date to something like:

{{#issue.duedate}}func=plusDays(7){{/}}

Hope that helps!

Cheers,
 Andreas

Andreas, thanks once again!

What about CurrentIssue.DueDate + 1 Day? Is it possible to set the value like that? Haven't found this in the document.

Andreas Knecht Community Champion Jan 24, 2018

Hey Andrey,

Not 100% sure what you mean by current issue, but that should be just:

{{#issue.duedate}}func=plusDays(1){{/}}

Cheers,

  Andreas

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Bridget Sauer
Published Thursday in Marketplace Apps

Calling all developers––You're invited to Atlas Camp 2018

 Atlas Camp   is our developer event which will take place in Barcelona, Spain  from the 6th -7th of   September . This is a great opportunity to meet other developers and get n...

357 views 0 6
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you