For a company-managed project in Jira Cloud sandbox environment, I need an automation rule such that when card B is dependent on card A, and card A changes the due date then card B due date is updated by the same number of days. I've read a few posts on this and can't get it to work. Attached are screen prints of the rule I have that "runs successfully" but all it does is blank out card B's date.
Rule:
The plusDays() function takes a number as a parameter, and created variables are text / string values.
Please try converting the variable with asNumber and re-testing:
{{issue.duedate.plusDays(dateDiff.asNumber)}}
Kind regards,
Bill
Hello @Ann Rumenapp
I recommend you use the Log action to write values into the rule execution Audit Log for each smart value you are trying to use, to confirm they have the values you think they should.
I recommend that you use multiple Log actions to write out each of the following, before the step where you edit the issue:
{{fieldChange.from}}
{{fieldChange.from.toDate}}
{{fieldChange.to}}
{{fieldChange.to.toDate}}
{{fieldChange.from.toDate.diff(fieldChange.to.toDate).days}}
{{issue.duedate}}
{{issue.duedate.plusDays(dateDiff)}}
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.
The same way you add other actions to your rule:
Then you type in explicit text and/or smart values you want printed into the log. Sample text is shown when you add the action.
The above would print into the log:
Report is: Reporter's Display Name
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you this helps immensely. This should be in the Atlassian automation rule training!!!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I have this rule working for due date but setting the start date is not working. Is there any special way to reference start dates in a smart value? The card has the start date field populated, but the log actions shows the field is empty.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The rule you have shared doesn't have any steps that change the start date. Are you talking about a different rule, or a different version of this rule?
Since we have already addressed the original problem you raised I also suggest that you start a new Question post.
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.