Automation to cascade field value from children to parent tickets

Vasanta Kumaar
Contributor
June 18, 2024

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

3 answers

2 accepted

0 votes
Answer accepted
Mohanraj Thangamuthu
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 18, 2024
0 votes
Answer accepted
Duc Thang TRAN
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 18, 2024

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}}

:)

Vasanta Kumaar
Contributor
June 27, 2024

Hi @Duc Thang TRAN

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

0 votes
Vasanta Kumaar
Contributor
June 18, 2024

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

Duc Thang TRAN
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 19, 2024

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 

 

Suggest an answer

Log in or Sign up to answer