Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
Level
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

[Automation for JIRA] copy value from Custom field 1 to Custom Field 2 Edited

Hi - 

Could someone give me the json format to to copy value from customFieldId=10060 & set it to customFieldId=10014 inside the same issue that I could use in Automation for JIRA for JIRA cloud.

Unfortunately, it does not populate the source custom field in the [Copy From] dropdown to copy to customFieldId=10014 in the UI, so I think I'll need the json to set that, attachment added for reference.

Thanks in advance!

Screen Shot 2019-04-10 at 12.52.46 PM.png

4 answers

1 vote
Nick Menere Community Leader Apr 15, 2019

Hi Anuj,

 

This will come down to what kind of field the 2 fields are. You should be able to copy between number and test fields.

Basically it should be something like:

{
"fields": {
"customfield_10014": {{issue.customfield_10060}}
}
}

But as I said, depends on the type of fields.

Cheers,

Nick

@Nick Menere - thanks, I'm going to try that & let you know.

@Nick Menere - it worked like mint, thanks a lot!

Hello @Anuj B @Nick Menere 

I'm running into the same problem ! 

I'm trying to copy one value from a custom field to another one on the same issue.

It doesn't work for issue created trigger rule, but it works perfectly for field value changed trigger rule !

I tried Json format as suggested above, it doesn't work. I also tried using the UI automation wizard (when, if, then) but no use !

Both custom fields are of type Select List (single choice) with the same values and None as a default value

Hi, 
I tried using the above query for copying components into a project picker field:

{
"fields": {
"{{issue.components.name}}":  {{issue.customfield_12700}}
}
}

I want to copy the component into the Project picker field (field number used here) but it doesn't work?


Could you please help?

@Nick MenereIs it possible to copy Date field? I am trying to copy Due Date(Standard field) to a custom field.

Please help!

@Nick Menere how should I update the above code so that the custom field from the epic is copied to the user story? The custom field is "customfield_10001" so I tried the following and it is not working: 

{
"fields": {
"customfield_10001": {{issue.parent.epic.customfield_10001}}
}
}

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Marketplace Apps & Integrations

New Cloud Apps Roundup - Spring 2021

Atlassian's marketplace partners have had a very productive start to 2021! Since our last roundup, our developer community has added over 160 new cloud apps to the Atlassian Marketplace to help you...

213 views 3 20
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you