Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
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

Copy value from field 1 to field 2 on Automation JIra

I reviewed other posts and still cannot find the solution.

I want to copy the value from customfield_10118 to 10122.

I created an automation rule for copy field and in value, I selected the Set Value: 

SetValue{{customfield_10118}} and it still did not work.

Then I removed this and tried with the More Options section. 

"fields": {
"customfield_10122": {{issue.customfield_10118}}


3 answers

1 accepted

3 votes
Answer accepted

Ok, I finally solved the issue with a work around.  For others the use case is:

I want to automatically set the custom field Approver with the value of the Manager custom field.  The Manager Custom field is synced with AD via the AD Attribute Sync to Jira plug-in.

NOTE:  Don't waste your time following the AD Attribute Sync instructions for doing this for it doesn't work on Create Issue.  The AD Sync happens AFTER the create issue.  My workflow for new requests goes directly to Waiting for Approval status versus and Open status. 


1) Create an Automation Rule that is scheduled time use 30 * * * * ? *  for every 30 seconds

2) Conditions:  Approver is Empty

3) Edit Issue and select the Approver field

4) In More Options: paste the following where "customfield_10122" is my Copy To field and "customfield_10118" is the Copy From.  You cannot use display name, etc and must have the accountid.

"fields": {
"customfield_10122": { "id": "{{customfield_10118.accountId}}" }

I hope this will help others have trying to modify the post functions, create automation trigger on create, etc.  

I don't think this is the best answer but it is a workaround for I have submitted the issue to Deventi for their plug-in.  

John Funk Community Leader Apr 15, 2021

Glad you got it working!

0 votes
John Funk Community Leader Apr 15, 2021

Hey Kathi,

This is what I do:


Use the JQL to identify the issues you want to copy the fields within.

Then do the Edit Issue and select the field that you want to copy TO. 

Then chose copy from current issue and select the other field. 

Same and publish and activate. 

Then click the Run Rule Now to copy the values. You might want to practice with a single issue like I have in my example. If that works, then do your full query. 

I will try this but I was wanting this run on Creation to set the Approver field so it can transition to the next work flow for JSD

John Funk Community Leader Apr 15, 2021

Oh, sure you can do that as well - just change the trigger type from Scheduled to Issue Created. 

This is another one of my actual ones:


Can you show me the setting for the "Edit Issue Fields" for approvers?  I am trying to set the value to another field value

John Funk Community Leader Apr 15, 2021

That's what's in the image above  :-)  I am copying from the Data Schema Owner to the Approvers field. 

Are you able to see that in your rule? 

Can you click on the component for "Edit Issue Field Approver" and take a screen shot on the settings?  

My screen has Approver and when I click to Copy I cannot select the other field like you have for Scheme Data Owner, so I wanted to see what you had in More Options

Like John Funk likes this

I figured it out!  I did not know you had to click on the word Copy and the pop up appears to allow you to select the field to copy from!

Like John Funk likes this
John Funk Community Leader Apr 15, 2021

Were you able to test it out and get it to work? 

No. I am stuck.  From the Azure AD Attribute plugin, it states to use a scheduled time to update the issue for AZure AD sync happens AFTER the create and not a post function (which they said worked but doesn't after searches and logging a bug).   Sooo  I tried the scheduled time to run every 30 mins when transitioned to Open to Waiting for Approval AND approver is empty.  It runs  and shows values and states it was edited but when I check the issue it still shows Approver as empty.  Approver.gif

John Funk Community Leader Apr 15, 2021

What do the details of the last step look like?

I looked over the JSON and still not working with the following:

"fields": {
"Approver": {{"key")}}

Suggest an answer

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

Marketplace Partner Spotlight: Fine Software

Happy New Year, everybody! What better way to kick off 2022 than with a new Marketplace Partner Spotlight ✨ This month, we're getting to know Daniel Franz, co-founder of Fine Software. Fine Software ...

426 views 2 15
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