Hi Team,
We like to know if there is a way in Jira to read from the “child” issue tickets (ie: User Story) linked to a Parent one (ie: Epic) and cascade/copy the info to same custom field present in Epic issue type.
Thanks,
Vasantakumaar
Hello, Good day. You could use the JSON value on the automation rule, as shown in the following links. https://community.atlassian.com/t5/Jira-questions/Automation-rule-copy-parent-value-from-cascading-select-fields/qaq-p/2134425 &
Hello @Vasanta Kumaar
For child value of cascade : {{issue.fields.customfield_xxx.child.value}}
If you want copy to Epic , you can try something like that
"update": {
"customfield_xxx": [
{
"set": {
"value": "{{triggerIssue.fields.customfield_xxx.value}}",
"child": {
"value": "{{triggerIssue.fields.customfield_xxx.child.value}}
:)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for the above JSON values. I have tried and got below error:
(data was not an array (customfield_XXXXX))
Please let me know what might be the issue.
Thanks,
Vasantakumaar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Mohanraj Thangamuthu & @Duc Thang TRAN ,
Thanks for the answer, will check and update.
I have another issue, what? If another child problem is added to the parent ticket, and automation runs, the existing value of the custom field will be cleared and replaced with the new one. How to avoid.
Thanks,
Vasantakumaar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @Vasanta Kumaar
In this case, I suggest adding if else conditions to modify the value of parent field cascade if the parent's cascading field is empty or other condition
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.