Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

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 field X value A to field Y value

How can i copy a field value using an automation rule with "More options" "Additional Fields" ?

I want to set the value of the field "Account" (tempo field) to the same vale as the Jira custom field "Company Code".

 

I tried this:

{
  "update": {
    "Account": [
      {
        "set": {"value": "issue.Company Code"}
      }
    ]
  }
}

 

But this gives me an error:

Action details:

Edit issue

Error editing issuesWNG-1109 (Can not deserialize instance of java.lang.Long out of START_OBJECT token at [Source: N/A; line: -1, column: -1] (io.tempo.jira__account))

1 answer

1 accepted

1 vote
Answer accepted

Hi @Maurice Stassen 

You appear to be missing the curly brackets around the smart value for your field.  Please try this one for your JSON.

{
    "fields": {
        "Account": {{issue.Company Code}}
    },
}

Here is the documentation on using the advanced editing with JSON to give you more ideas:

https://support.atlassian.com/jira-software-cloud/docs/advanced-field-editing-json/

 

Also, if you are unsure about the names of the smart value for your fields, you can try this technique to identify them:

https://support.atlassian.com/jira-software-cloud/docs/find-the-smart-value-for-a-field/

Best regards,

Bill

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Site Admin
TAGS
Community showcase
Posted in Jira Software

Presenting the "Best of 2020" Jira Software roundup!

Catch up with Atlassian Product Managers in our 2020 Demo Den round-up! From Advanced Roadmaps to Code in Jira to Next-Gen Workflows, check out the videos below to help up-level your work in the new ...

7,184 views 8 28
Join discussion

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