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?
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!
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Join us June 26, 11am PT for a webinar with Atlassian Champion Robert Hean & Loom’s Brittany Soinski. Hear tips, stories, and get your burning questions answered. Learn how Loom makes training and enablement easier. Don’t miss it!
Register todayOnline 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.