Sync user field automatically by Json

Duncan 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 Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 9, 2023

Hello @Duncan 

Your syntax should look like this:

{
"update":{
"<your custom field>":[{
"add":{"id":"{{triggerIssue.assignee.accountid}}"}
}]
}
}
Duncan 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