I have an automation rule that creates a new issue and sets the value of a cascading field based on the trigger issue. It has been working well for a long time, but recently it started failing when the trigger issue doesn’t have a child value for the cascading field.
{ "fields": { "customfield_xx": { "value": "{{triggerIssue.fields.customfield_xx.value}}", "child": { "value" : "{{triggerIssue.fields.customfield_xx.child.value}}" } } } }
Error message: Specify a valid child option 'name' for customfield_xx
Could this be due to a change in Jira?
Hi @Olive Sun
For a question like this, context is important for the community to help. Please post the following:
Until we see those...
When did you first notice this symptom? Seeing the audit log (both the details and list of executions) will help to confirm when the symptom started happening.
Has anything changed in the rule, field configuration, or conditions when the rule is used?
My understanding is the child value (or id) should not be passed when the value is empty for a cascading field. When it is unknown if the parent (and / or child) values will be empty, a conditional expression may help to make the JSON dynamic: https://support.atlassian.com/cloud-automation/docs/jira-smart-values-conditional-logic/
Kind regards,
Bill
Hey @Olive Sun
It's always frustrating when something changes and you have no clue why! Couple of troubleshooting questions here to start off (as I haven't tried updating cascading fields just yet):
{ "fields": { "customerfield_XX": { "value": "{{triggerIssue.fields.customerfield_XX.value}}" } } }
Let me know if either of these help, and if not, I'll jump in and try building a matching automation rule!
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.