Good afternoon.
how do I always leave the deadline at a certain number of days from the start date?
I'm using {{startDate.plusDay(2)}} but it's not working.
Can you provide more information?
Is this part of an Automation rule? If so, can you show us the rule? And what information is provided in the Audit Log for the rule?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It appears that your rule is intended to modify the Start Date and Due Date on sub-tasks when the Start Date on a parent task is changed. Is that correct?
How is your rule not working? Is Due Date not getting changed at all, or is it getting changed to an unexpected value?
The Due Date field is being set based on the value of the Start Date field in the subtask. What code are you using to se the subtask Start Date field? Is that working?
What does the Audit Log for this rule say when the rule is executed?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It appears that your rule is intended to modify the Start Date and Due Date on sub-tasks when the Start Date on a parent task is changed. Is that correct?
- Correct.
How is your rule not working? Is Due Date not getting changed at all, or is it getting changed to an unexpected value?
- Not work, the Due Date not getting changed.
The Due Date field is being set based on the value of the Start Date field in the subtask. What code are you using to se the subtask Start Date field? Is that working?
- The same of parent issue, it's work.
What does the Audit Log for this rule say when the rule is executed?
- The audit log presents "sucess", don't detect bugs.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Please consider using the Log action to write values into the audit log for
1. The subtask Start Date, immediately after the action where you change that value
2. The value result of the calculation you are using to set the Due Date field, before the action where you set that field.
3. The value of the Due Date field after the action where you try to set it.
https://support.atlassian.com/jira-software-cloud/docs/debug-a-rule/
And post the results of those Log actions. That will help with debugging the rule.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Adding to what Trudy suggests:
I note in your screen image you have {{startDate.plusDay(2)}}
However the function name is actually plusDays()
Please update that to learn if it helps. Thanks!
Best regards,
Bill
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 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.
Douglas, have you tried the edit issue action, changing your field to be:
{{issue.Start date.plusDays(2)}}
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.
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.