Hello, I’m trying to create an automation to copy a field from a parent Work Item to its child Work Items.
When setting up the automation, I can’t find the field I want to copy. I usually find all the fields I need here, but this one doesn’t appear. I’ve also attached the field definition — it’s a 1- or 2-level cascading field, where you can select either one option or both.
Maybe I should use the JSON instead, but I’m not sure how it should be declared there.
Hi @agasull
Yes, in Jira, cascading select fields usually don’t show up in the “Edit issue fields” picker in Automation, so you need to set them via More options → Advanced JSON.
You can use this one, so the JSON stays valid even when the child level is empty:
{
"fields": {
"customfield_12345": {
"value": "{{issue.parent.fields.customfield_12345.value}}"
{{#if(issue.parent.fields.customfield_12345.child.value)}}
,"child": { "value": "{{issue.parent.fields.customfield_12345.child.value}}" }
{{/}}
}
}
}
Hi,
When you click on "Choose fields to set", do you not see your field? Are other fields displayed ?
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.