Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Automation : Copy Cascading field Value from the Linked Issue.

We have a cascading field named Ws&LGroup

We would like to copy the Cascading field values to the linked issued wherever the link type is "Relates". 

 I have added the rule as follows. 

Trigger : Field value changed for Ws&LGroup ( For All Actions ). 

Branch Condition : Relation - Linked Issues

                               Link Type - relates

                               Only Include the Issues changed since the rule Executed

Edit Action : Advanced fields rule

{
"update": {
"WS&LGroup": [
{
"set": {
"value": "triggerIssue.fields.WS&LGroup.value",
"child": {
"value": "triggerIssue.fields.WS&LGroup.child.value"
}
}
}
]
}
}

 

Error Message : No related issues that have updated since the last time this rule executed could be found. 

 

Attached all the screenshots for your reference. ( Trigger, Branch Condition, Edit action, Error message).

Please help me to copy the cascading field values to the linked issues. 

Thanks In Advance

Madhu

Automation Trigger.pngBranch Condition.pngEdit Advanced Fields.pngutomation Error Message.png

1 comment

Hi @Madhu Reddy ,

 

On “Branche rule” you have checked “only include issues that have changed since the last time this rule executed.

I think you must uncheck this.

 

And maybe is

{

"fields": {

"Assignment Group (Cascading)" : { "value": "{{issue.fields."Assignment Group"}}", "child": { "value" : ""} }

}

}

A better way for additional fields.

 

Regards,
Marco Brundel

Like Madhu Reddy likes this

Hi @Marco Brundel Thanks for the response. 

I have unchecked the "Only include issues that have changed since the last time this rule executed" in the branch rule and now this is how the error message looks like.

JIRA-167 (Option value 'triggerIssue.fields.WS&LGroup.value' is not valid (customfield_15200))

Attached screenshot for your reference.

Could you please elaborate the rule if possible, I am not aware of the rule you mentioned. 

Updated error.png 
Thanks
Madhu

Hi @Madhu Reddy ,

Something like this instead of your "update" part . 

{
"fields": {
"WS&LGroup" : { "value": “{{triggerissue.fields."WS&LGroup"}}", "child": { "value" : "triggerIssue.fields.WS&LGroup.child.value"} }
}
}

 

I'm not sure about the child part. I don't currently have a similar environment to test it myself, sorry.

Like Madhu Reddy likes this

Hi @Marco Brundel Thanks for adding your thoughts. Below code worked for me. 

 

{
"update": {
"Fieldname": [
{
"set": {
"value": "{{triggerIssue.fields.Fieldname.value}}",
"child": {
"value": "{{triggerIssue.fields.Fieldname.child.value}}"
}
}
}
]
}
}

Like Marco Brundel likes this

Comment

Log in or Sign up to
This widget could not be displayed.
TAGS

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you