I have 2 custom fields, 10030 is multi user picker, and 10185 is a single user picker. I want to make an automation rule that ADDS user selected in 10185 to 10030. I need to accomplish this using JSON. This is how I have the automation rule currently:
{
"update": {
"customfield_10030" : [
{"add": {{issue.customfield_10185}}}
]
}
}
This returns error: Error while parsing additional fields. Not valid JSON.
Does anyone know how I can successfully use JSON to ADD a single user from customfield_10185 to customfield_10030? Thank you for your time!
Differences between multiuser and userpicker are that first returns array of users. Maybe problem is that you're trying to pass one user but you should pass an array of one user. Is this some kind of requirment achievieng it with json?. Is there no option to set edit field and than pass there a smart value of customfield value?
@Tomasz Kowalczyk Thank you for your reply! So setting the smart value works, but it REPLACES what is already in customfield_10030, while what I am trying to do is ADD 10185 to what is already present in 10030.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
So maybe try too pass something like this :
"add": [ {{issue.customfield_10185}}] i'm not sure is it properly configured json but for now i don't have place to test it.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
from documentation i found this part for setting multiuserpicker
{ "fields": { "Multi User Customfield": {{issue.parent.Multi User Customfield.accountId.asJsonObjectArray("id")}} } }
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.