Hi
When the due date of a subtask is modified, I need to identify the number of days of difference between the original due date and the final due date, and then add that number of days to the due date of the parent.
How can I get it through automation?
Could you give me an example?
Thank you.
Hello @Roger Alexis Mosquera Montaño
Welcome to the Atlassian community.
Are you working with Jira Cloud or Jira Server/Data Center?
If the URL is similar to https://something.atlassian.net then you are probably working with Jira Cloud. Alternately you can check the bottom of a Dashboard screen to see if there is Jira application version information displayed. If there is, then you are working with Jira Server or Data Center, and we need to know which version you are using.
Hi Trudy
I'm working with Jira Cloud.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @Roger Alexis Mosquera Montaño
To find the difference between two dates use the diff function:
To add a value to an existing date field, use the plus function:
I haven't worked out all the details but the basic structure of the rule would be:
Trigger: Field Value Change
Field: Due date
Condition: Issue Field Condition
Field: Issue Type
condition: equals
Value: <pick the value for subtask>
Condition: Issue Field Condition
Field: Due date
condition: is not empty
Condition: Smart Values Condition
First Value: {{fieldChange.fromString.IsNotEmpty()}}
condition: equals
Second value: true
Action: Create Variable
<step to calculate the difference between the original and new Due date>
Branch: For Related Issue: Parent
Condition: Issue Field Condition
Field: Due date
condition: is not empty
Action: Edit issue
Field to edit: Due Date
Value: {{issue.duedate.plusBusinessDays(<variable name from Create Variable step>)}}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You're welcome, @Roger Alexis Mosquera Montaño
If my response helped you solve your need, please consider clicking on the Accept Answer button. That will mark your Question as Solved, and help others searching for answers find the posts with validated solutions.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.