Forums

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

Copying data from "Select List (cascading)" field while cloning an issue

Avi J September 7, 2023

Using an automation, I'm duplicating issues from one project to another and copying over much of the information.

Both projects are using the same custom field (customfield_10067), a  "Select List (cascading)" field. I want to copy this field into the new issue that I'm creating and can't figure out how to do so using the "Additional Fields" section. 

 

1 answer

1 accepted

1 vote
Answer accepted
Fernando EugĂȘnio da Silva
Community Champion
September 7, 2023

@Avi J ,

You can use this JSON in Additional Fields to copy the value:

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

You can change the Custom Field Name by Custom Field ID as well.

Hope this helps.

Avi J September 7, 2023

Amazing, thank you so much! 

Edgardo Ibarra
Contributor
November 1, 2023 edited

Hey @Fernando EugĂȘnio da Silva Thanks for this info, I'm facing the same situation as Avi. I just wanna know if this works the same if I need to clone 2 "Select List (cascading)" fields in the same automation?

 

How can I put it on JSON? Can you help me with that? Thanks in advance!

Fernando EugĂȘnio da Silva
Community Champion
November 1, 2023

@Edgardo Ibarra ,

You can use this JSON to consider two custom cascade fields.

 

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

Hope this helps you.

Like ‱ Edgardo Ibarra likes this
Edgardo Ibarra
Contributor
November 2, 2023

It works! 

Thanks a lot for your help! 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events