Forums

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

JIRA Cloud - Copy custom field to component field

Rémy PREVOT July 12, 2021

Hello to all,

I have a request and I cannot find any answer.

Is it possible to copy the value of a custom field to the component field ?

To add some details, the custom fields are dropdown list (cascading).

What I'd like is that :

When the values from the list are selected or modified on the JIRA issue, then the component should be updated according to the value selected.

Thanks,

Regard

Rémy

2 answers

2 accepted

0 votes
Answer accepted
Rémy PREVOT July 19, 2021

Hello

I find the solution. Here is the smart values to use : 

 

For simple list : 

{{issue.CustomField_xxxxx.value}}

 

For cascading list : 

{{issue.CustomField_xxxxx.value}} ==> parent value

{{issue.CustomField_xxxxx.child.value}} ==> child value

 

*xxxxx refers to the id of the custom field

 

Hope that will help !

Cheers

Chiru
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!
May 16, 2023

Didn't work

image.png

0 votes
Answer accepted
Dave Bosman [Realdolmen]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 12, 2021

Hi @Rémy PREVOT 

Welcome to the community.

Out of the box it is not possible. However this can be solved with automation for Jira

You need to create a rule that triggers on the change of the custom field that you have and then copies the value to the component field. 

Regards

Dave

Rémy PREVOT July 12, 2021

Hi @Dave Bosman [Realdolmen] ,

Thanks for your reply. 

I'll try with your solution.

Because I tried to implement some post functions but it did not work.

Regards,

Rémy

Rémy PREVOT July 13, 2021

Hi @Dave Bosman [Realdolmen] ,

I tried to configure some automation rule but it does not seem to work. 

Or it does not seem to get the value from the custom field and copy it in the component field.

Plus, I don't see option to select "copy value from"

Do you know how could I configure it ? Have you done it once ?

Looking forward for your reply

Thanks

Regards

Rémy

Dave Bosman [Realdolmen]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 13, 2021

Hi @Rémy PREVOT 

You should use a smart value 

In my example it is done with the field "Affected services"

2021-07-13 12_29_12-Window.png

Regards

Dave

Rémy PREVOT July 13, 2021 edited

Hello @Dave Bosman [Realdolmen] ,

I tried it but the component isn't updated. 

Capture d’écran 2021-07-13 à 12.53.41.png

 

Whenever I change the value of my custom field, the component is not updated with the value.

Did it work for you ?

Thanks 

Regards

Rémy

Rémy PREVOT July 16, 2021

Hello @Dave Bosman [Realdolmen] ,

Any update regarding this subject ? 

It could be very helpful

Thanks 

Regards

Rémy

Dave Bosman [Realdolmen]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 16, 2021

Hi @Rémy PREVOT 

Does the value already exist as a Component?

Regards

Dave

Rémy PREVOT July 16, 2021

Hi @Dave Bosman [Realdolmen] ,

Yes it does. 

And when I check the audit, it appears as "success" - wether the value exists or not btw.

Regards,

Rémy

Dave Bosman [Realdolmen]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 16, 2021

Could you share a screenshot of the audit?

Also, the user that is executing the rule, does he have permissions in that project? 

Rémy PREVOT July 16, 2021

@Dave Bosman [Realdolmen] , 

The user is the admin and we gave it all the necessary permissions on the project.

Here is the screenshot : 

Capture d’écran 2021-07-16 à 13.07.43.png

Here is a screenshot of the modification : 

Capture d’écran 2021-07-16 à 13.07.52.png

Screenshot of the result :

Capture d’écran 2021-07-16 à 13.08.07.png

Screenshot of the existing component list : 

Capture d’écran 2021-07-16 à 13.08.14.png

 

Regards,

Rémy

Sam Ayres
Contributor
August 1, 2023

Hello,

Try storing the value with the "Log action" action, and then call upon the value that you stored in the next step in order to edit the "Components" field.

Screenshot 2023-08-01 10.21.35 AM.png

Screenshot 2023-08-01 10.22.03 AM.png

Mike Prill December 6, 2023

Thanks everyone, this still worked for me 2+ years later.

Like John Funk likes this

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, atlassian government cloud, fedramp, webinar, register for webinar, atlassian cloud webinar, fedramp moderate offering, work faster with cloud

Unlocking the future with Atlassian Government Cloud ☁️

Atlassian Government Cloud has achieved FedRAMP Authorization at the Moderate level! Join our webinar to learn how you can accelerate mission success and move work forward faster in cloud, all while ensuring your critical data is secure.

Register Now
AUG Leaders

Atlassian Community Events