Forums

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

Sync user field automatically by Json

Duncan Chen TPE May 9, 2023

I am trying to sync customized user field by automation. However, the Audit log shows error message "Error while parsing additional fields. Not valid JSON."

Following is the scenario, there are two projects Project A and Project B. Project A has a customized field (User Picker (multiple users)). Project B's issues are related to Project A's issue. When Project B's issues changed the assignee then trigger the automation. Project A's customized field will be added the user automatically.

 This is the Json

{
   "update": {
   "customfield_10058":{
   "add":"{{triggerIssue.assignee}}"


     }
   }
}

Please give me your advice
thank you ~

1 answer

1 accepted

0 votes
Answer accepted
Trudy Claspill
Community Champion
May 9, 2023

Hello @Duncan Chen TPE 

Your syntax should look like this:

{
"update":{
"<your custom field>":[{
"add":{"id":"{{triggerIssue.assignee.accountid}}"}
}]
}
}
Duncan Chen TPE May 9, 2023

Hi @Trudy Claspill 

It's worked. 

Thank you for your input

Like Trudy Claspill likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events