Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Copy value from a cascading list in a sub-task to the parent ticket in a cascading list

Térence LECROIX
Contributor
February 20, 2023

Hello,

I'd like to get the parent and child values from a cascading list in a sub-task and fill in the same values in the parent ticket on a cascading list as well.

The automation is supposed to be trigger when a field is modified in the parent ticket, the automation should gather the value from the sub-task and fill the cascading lsit.

Both two cascading list have the same values but are two separate fields.

I tried to get the value by using the Branch "For sub-tasks", then create three variable : 

for example : 

  • Variable name : myvar1
  • Smart value : {{issue.fields.NAME OF MY CASCADING LIST.value}}
  • Variable name : myvar2
  • Smart value : {{issue.fields.NAME OF MY CASCADING LIST.child.value}}

 

Then i tried with additional field in json such as : 

{
"update": {
"NAME OF MY CASCADING LIST": [
{
"set": {"value": "{{myvar1}}", "child": {"value" : "{{myvar2}}"}}
}
]
}
}

 

But nothing seems to work,
thanks in advance !

1 answer

1 accepted

0 votes
Answer accepted
Trudy Claspill
Community Champion
February 20, 2023

Hello @Térence LECROIX 

Please show us your rule.

Sometimes the problem with using smart values and variables has to do with the context of when they are used/created. 

Térence LECROIX
Contributor
February 21, 2023

Hello, thank you for your anwser, please find some screenshots

automation_copy_value_from_sub-task_to_current1.png

automation_copy_value_from_sub-task_to_current2.png

automation_copy_value_from_sub-task_to_current3.png

automation_copy_value_from_sub-task_to_current4.png

automation_copy_value_from_sub-task_to_current5.png

Trudy Claspill
Community Champion
February 21, 2023

Hello @Térence LECROIX 

Thank you for those images. That is very helpful.

In order to use the variables outside of the branch you will need to create a variable outside of the branch before it executes.

Refer to the workaround shown in https://jira.atlassian.com/browse/JSWCLOUD-22527

Térence LECROIX
Contributor
February 22, 2023

Hello @Trudy Claspill thanks a lot, it works now !!

 

Thank you so much, have a great day !

Like Trudy Claspill likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events