Forums

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

Copy the cascading field(select list) on automation to another issue from another project

Guy Mandel August 28, 2021

Hello,

I need to copy the cascading field from one issue in one project(HR) to another issue on another project(IT).

I created automation to create a new issue on "IT" project if the new issue in the project "HR" opening, this is working but I can't copy the Cascading field between the project.

the cascading field available in both projects.

 

I need to copy some fields and this is the only field that I could not be copying.

I try many ways to copy the field in JSON but it's not working for me, the field is still empty.

this is the JSON code in the automation on "HR" project.

 

{
"fields": {
"customfield_10104": {
"value": "{{issue.customfield_10104.value}}",
"child": { "value" : "{{issue.fields.customfield_10104.child.value}}"
}
}
}
}

 

Does someone know how to copy the field between the projects?

 

4 answers

2 votes
Guy Mandel September 5, 2021

Hello everyone,

First thanks for trying to help me with this issue.

I tried everything you said but it still does not work ...

I researched the JSON code again and found the right JSON for my problem

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

Rob Hathaway
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 23, 2023

This worked for me! Thanks for sharing your solution!

Robin Stemmers
Contributor
May 17, 2023

Hello @guy 

I am no developer person, and I tried your solution as is and this worked for me too.

Thank you for sharing :)

Kirandeep Singh
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 8, 2024

@Guy Mandel 

Thank you for sharing this solution. It worked!.

Sudheer Vissa
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 17, 2024

Great, It worked for me.

1 vote
Julien Peyrade _ Elements
Atlassian Partner
August 30, 2021

Hello @Guy Mandel 

If you don't mind using another app, another solution would be to use the add-on Elements Copy & Sync, which lets you copy all kinds of fields, including cascaded select lists.

I'm the Product Manager of this add-on which is available on Jira Cloud and Server/Data Center, and I'll gladly answer any question you may have.

Regards,

Julien

0 votes
Sherry Goyal
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 30, 2021

Hi @Guy Mandel 

Can you try printing its value to audit logs and see what comes in there.

{{issue.customfield_10104.value}}, {{issue.customfield_10104.child.value}}

 

If these values comes out to be empty, try printing this:

{{issue.fields.customfield_10104.value}}, {{issue.fields.customfield_10104.child.value}}

Either one of these should work.

 

Thanks
Sherry 

0 votes
Joseph Chung Yin
Community Champion
August 28, 2021

@Guy Mandel -

Have you checked to ensure the custom field's context (HR) is the same for your IT project?, Both projects should have the same custom field configuration - context setup.

Hope this helps.

Best, Joseph Chung Yin

Jira/JSM Functional Lead, Global Infrastructure Applications Team

Viasat Inc.

Guy Mandel August 28, 2021

Hi,

Yes, I checked to make sure the custom fields are is for any issue type and Global context in configuration.

The field is available to both projects.

 

Thank you for the help.

Joseph Chung Yin
Community Champion
August 29, 2021

Good.  Now you will need to ensure that your copy field process (taking the HR issue custom field value during IT issue auto-creation process) is placed after the HR issue is created first.

Best, Joseph

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