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:
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))
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.