I have a rule that clones an issue. One of the fields being copied is called ‘Frequency’ and can have values like Weekly, Monthly, Quarterly, Semi-Annually, or Annually. When the new issue is created, I want to use the Frequency value to calculate the new Due Date based on the original issue's Due Date.
For example, if the original issue has a Frequency of ‘Quarterly’ and a Due Date of July 1, 2025, the cloned issue should have a Due Date of October 1, 2025.
Could you help me figure out how to set up this rule to calculate the new Due Date for each Frequency type? Thank you!
Welcome to the community.
So based on your example, and after creation you would need to use an if/else condition in your automation
based on the value of the field Frequency, have an edit action that will edit the due date.
The smart value you can use for a quarter will then be: {{issue.duedate.plusWeeks(13)}}
So other options based on the values the Frequency field can have are:
Marc, thank you for your answer. I have a follow-up question regarding Jira automation rules.
Here's the example:
Original Issue No1: Due Date = 25.10.24
Automation Rule - First Clone:
Automation Rule - Second Clone:
How can I adjust the automation rule so that the cloned issue's due date is always set to the 25th of the actual month, regardless of the interval logic?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
instead of PlusWeeks, or PlusMonths you can consider to use PlusBusinessDays (business days are considered to be Monday to Friday, 9am to 6pm)
So instead of using {{issue.duedate.PlusWeeks(4), use {{issue.duedate.PlusBusinessDays(20)}} this will move the issue due date 2o business days in the future.
If you want a specific day of a month, you can use:
{{issue.duedate.withNextDayOfMonth(25)}} ,but there is a catch in this
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Maybe I'm misunderstanding this, but if I take the issue with the number "T-01" as an example, which is set to renew monthly with a trigger on the 1st of each month, it seems that the rule "Monthly -> {{issue.duedate.plusMonths(1)}}" only works correctly when creating the first clone. Starting from the second clone, the date is calculated incorrectly because the original task "T-01" is cloned again, adding only 4 weeks instead of the expected 8 weeks. Is that correct?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This is correct.
This is not an option to do with automation, unless you make a clone of the clone.
The smart value in the rule acts on the value in the Due Date field, if that stays the same, it will not update the Due Date with 2 months.
You could create a rule that runs every 1st day of the month, that rule creates and issue with all relevant informant (so don't clone an issue) and then use the smart value for the field Due Date
{{now.withDayOfMonth(25)}}
So don't clone issues, but create rules based on a schedule trigger and just provide al info in the rule, instead of creating a template issue in the system.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Bua! Thanks a lot! Perfect. Now I understand how it works—top!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Schneider_ Christian -- Welcome to the Atlassian Community!
Adding to Marc's suggestions...
You are trying to use a "template" issue to create clones with increasing Due Date values, based on the starting date and an incrementor type: Weekly, Monthly, etc.
To get the dates correct, the rules needs to do one of these:
Next, you are using fixed incrementor types. Rather than using if / else condition blocks, I recommend using one of these approaches:
The first approach will be more readable and maintainable in the rule, while the second one is theoretically faster yet more complicated and prone to implementation errors.
Kind regards,
Bill
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Spend the day sharpening your skills in Atlassian Cloud Organization Admin or Jira Administration, then take the exam onsite. Already ready? Take one - or more - of 12 different certification exams while you’re in Anaheim at Team' 25.
Learn more
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.