I have a cascading custom field on Epics and Tasks. What should be the JSON syntax in my Jira automation for copying the value from the parent Epic to it's Task.
At the moment the locig in the automation is this:
I have tried this JSON, but i doesn't work - automation copies component field but doesn't copy the value in customField_15800 to a task from it's parent epic (automation end is succes though):
{
"update": {
"customField_15800": [
{
"set": {
"value": "{{triggerIssue.fields.customField_15800.value}}",
"child": {
"value": "{{triggerIssue.fields.customField_15800.child.value}}"
}
}
}
]
}
}
Any idea on what the syntax should be would be greatly appreciated. Thank you alredy in advance!
Hi @Lean Li For updating a cascading field this is the format :
Cascading select custom field
Select a single parent value, and a related child value. You can address them by value or id.
"customfield_11447" : { "value": "parent_option1", "child": { "value" : "p1_child1"} }
or
"customfield_11447" : { "id": 10112, "child": { "id" : 10115 } }
{
"fields": {
"customfield_10305" : { "value": "{{cascadingParentValue}}", "child": { "value" : "{{cascadingChildValue}}"} }
}
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks this helped a lot! With this automation structure and these variable values I got it working:
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.
I'm having the same issue, but following the steps above doesn't appear to work, so I must be missing something. I have a cascading select list, I'd like for any changes to that field on the Epic to copy to each child work item. Any help would be gratefully received. For context, the field is called Contract (Id 10740). Thanks
My rule so far is:
When Value changes for Contract, and Issue Type is Epic, Branch, For Children, create variables, Then Edit Work Item Field, I'm then using the syntax:
{
"fields": {
"customfield_10740" : { "value": "{{cascadingParentValue}}", "child": { "value" : "{{cascadingChildValue}}"} }
}
}
Upon saving I see error -
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Actually, I've solved it. For anyone else with the same issue I used the below syntax and removed the create variables:
{
"fields": {
"Contract": {
"value": "{{triggerIssue.fields.Contract.value}}",
"child": {
"value": "{{triggerIssue.fields.Contract.child.value}}"
}
}
}
}
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.