I am trying to copy a custom field value from parent issue (story) to (subtask) when the field value is updated: This is what i used for an automation rule and Json code but i get an error
Can anyone please help with that?
HI @Ahmed Yousif
Welcome.
What type of custom field is product categorisation, single select, multi select, etc..
Is this field on the screen used by the sub-task?
Hello Marc, thanks for your reply! yes i made sure it's in the screen used by the subtask, and almost every project/screen where all the issue types are part of. It's a select list (cascading)
Hi @Ahmed Yousif -- Welcome to the Atlassian Community!
Adding to Marc's suggestion...
That appears to be a cascading selection field, and so the JSON syntax is different:
https://support.atlassian.com/cloud-automation/docs/advanced-field-editing-using-json/#Cascading-select-custom-field
And...you may need to use conditional logic to handle the possibility when the parent-value is set and the child-value is not.
Kind regards,Bill
Hello Bill,
Thanks for your reply, i have used the cascading Json as suggested and it worked.
now i have couple of rules that do the following seamlessly:
One challenge is:
By default, the actions of one rule do not trigger other rules. This is to prevent errors and accidental rule recursion.
For example, you have a rule triggered on updates to the Epic to update the Story, but by default that will not fire the rule triggered on updates to the Story to update the Subtasks.
When you want one rule's actions to trigger another, in the downstream rule, enable this option in the rule details, and test fully:
Check to allow other rule actions to trigger this rule. Only enable this if you need this rule to execute in response to another rule.
Please try enabling this option in your rule which updates the Subtasks when the Story's field changes.
It looks like you're new here. Sign in or register to get started.