I am trying to create a Manual Automation Rule that would set the Baseline Dates to match Target Dates.
My Rule:
However, I get an Error editing issues
I also tried just using the following in place of the "More Options".
"customfield_16818": "{{issue.Target start.startDate.jiraDate}}"
"Baseline start date": "{{issue.Target start.startDate.jiraDate}}"
"customfield_16818": "{{issue.Target start.startDate.jiraDate}}"
"Baseline start date": "{{issue.customfield_10103.startDate.jiraDate}}"
GOT IT!!!
I was definitely overthinking it! This worked.
Is there a chance that the fields are of different types, for example date vs date time, therefore inputing the wrong formatting for the field value?
Can you try adding a log option before the "edit issue" and try to use that to print what the smart value for {{issue.Target Start.startDate.jiraDate}} is to the audit log to make sure that value exists and is correct?
https://support.atlassian.com/cloud-automation/docs/debug-an-automation-rule/
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks! I just tried that - didn't really return anything in the Audit Log. I may be doing something wrong, though.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
I don't have those fields in my instance or even comparable ones to test but the JSON may possible be off. Myspacing below maybe off but even the target fields have custom field values so possibly try that
{
"fields": { "customfield_XXXXX": "{{issue.customfield_YYYYY.jiraDate}}"
}
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I tried that one, too.... that didn't do it. My Baseline start date still did not update sadly. Audit Log says no actions performed.
{
"fields": { "customfield_16818": "{{issue.customfield_10103.jiraDate}}"
}
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This may not be related to this response, but I also tried using the dropdown and selecting Baseline start date (customfield_16818) and entering the Target start (customfield_10103).
My Audit Log shows success - but the Baseline start date was not updated.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Also tried the following in the Baseline start date field (above) to no avail!
{{Target.startDate.jiraDate}}
{{Target start.startDate.jiraDate}}
Audit Log keeps telling me that my issue was edited successfully...
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.