When the approvers field is updated, I am trying to automatically add those users to the existing custom field (as it may already contain some users and I want to preserve them, and just add on them)
Be aware, both fields are multi-user fields.
Hi @[deleted]
You can check "Add to existing values" and copy from another field within issue.
ps: For json update method, please check Advanced field editing page
Sample one with add;
{
"update": {
"customfield_xxxxx" : [
{
"add": {
xxxxxxxx
}
}
]
}
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Tansu, trying
{
"update": {
"customfield_10561" : [
{
"add": {
"issue.approvers" : [
]}
}
]
}
}
gets me the following error,
Field 'customfield_10561' cannot appear in both 'fields' and 'update')
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.