Good day. Please tell me how can I add another specific user to the value for the multi-user field?
jira automation
Working variant, adding users to the custom field via JSON
{
"update": {
"customfield_10439" :
[{
"add": {
"name":"login1,login2"}}
]
}
}
Why is this not working
{
"update": {
"customfield_10028": [{
"add": {
"accountId": "{{customfield_10149.accountId}}, {{customfield_10056.accountId}}"
}
}]
}
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Evgeniy
You should be able to just click in the field and start typing another user's name.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Apparently you misunderstood me. In this case, the Jira automation plugin is considered.
When changing a multi user field, I need to store the old value and add the new one to it. I tried to use JSON in advance, but the value is only overwritten, instead of being added.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Perhaps if you give up the exact scenario, we can give you better guidance. What are you doing, and what do you want to happe?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Point:
In the user field of the multiuser field with the existing value user 1, add user 2 using the automation plugin for Jira.
If I create an automation rule in a project and select in action - edit field
Then I can only reassign the value in this field, but I need to add the value, and not overwrite it to user2 (while deleting the past value of user1)
I tried to implement this example using JSON:
ex:
{
"fields":
{ "Multi User Customfield_11111": {{issue.parent.Multi User Customfield.accountId.asJsonObjectArray("id")}
} } }
{
"fields":
{ "Customfield_123456": {{issue.parent.Multi User Customfield.name.asJsonObjectArray("user2")}
} } }
But to no avail, my rule only removed the value.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you for the additional information. I am using Jira Cloud not Server, but I see this in my Edit issue option for a multi-user select field:
Do you need see that in yours?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Gotcha. Try this in the advanced part of Editing issue in Automation:
{
"update": {
"Request participants" : [
{
"add": {
"id":"{{issue.comments.last.author.accountId}}"
}
}
]
}
}
Just sub-out your field name and which user you want to add.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If this answered your question, can you click on the Accept Answer button above to close this one out? Thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @John Funk
I have a similar requirement where I want to add and append the user picker(multi user) custom field via Automation JSON.
I tried your above solution but it didn't work, can you help me with that.
Regards.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Update it worked I was calling the wrong field. My Bad.
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.