I had an error while parsing each time the rule executes
"fields": {"update": {"customfield_10023": "{{triggerIssue.customfield_10023}}",}}
Hi @Amer Jneid
For a question like this, please post an image of your complete automation rule, images of any relevant actions / conditions / branches, an image of the audit log details showing the rule execution, and explain what is not working as expected. Those will provide context for the community to offer ideas. Thanks!
Until we see those...
What is the type of your custom field? The type of the field impacts the format used when making updates with JSON edits: https://support.atlassian.com/cloud-automation/docs/advanced-field-editing-using-json/
Kind regards,Bill
The rule compares the Epic and stories' Target End (a custom date field 'cf-10023') and updates the parent Epic if the story target end is greater. The challenge is that Jira automation does not support this field; I attempted to update first a supported field and use the "more options" to update the unsupported customfield_10023 which is a date type.
Thanks for that information.
There are some missing curly brackets in your JSON, an extra comma, and the date is in the incorrect format. To set that field it must be in jiraDate format: https://support.atlassian.com/cloud-automation/docs/advanced-field-editing-using-json/#Date-picker-custom-field
{ "fields": { "customfield_10023": "{{triggerIssue.customfield_10023.jiraDate}}" }}
Also note: there is an error in your update of the Due Date field: there are two periods after triggerIssue in the smart value expression.
Thank you so much, it solved the JSON message error but it created another error.
I removed the .jiradate and it worked perfectly thank you so much
{ "fields": { "customfield_10023": "{{triggerIssue.customfield_10023}}" }}
It looks like you're new here. Sign in or register to get started.