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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,456,304
Community Members
 
Community Events
176
Community Groups

How do I create recurring issues with Automation for JIRA?

andreas Rising Star Sep 19, 2016

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

3 answers

1 accepted

2 votes
Answer accepted
andreas Rising Star 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 Rising Star 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 Rising Star 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

I don't see that "Recurring tasks" template anywhere in the template library... mind boggling.

I don't see that "Recurring tasks" template anywhere in the template library... mind boggling.

Hi,

I am creating a rule to create a recurring task on the first of the month and then want to set the due date = 10 days after the create date.

In the scheduled trigger I have the CRON expression: 0 15 7 1 * ?

And for the Due Date do I use: {{#issue.duedate}}func=plusDays(10){{/}}
}
}

Thanks

Robert

I wanted to know if my rule will work.

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events