Forums

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

Add an aditional User to User Picker (Multi) with Automation

Hannes
Contributor
December 10, 2020

Hallo everybody!

What I'm trying with Automation:

 

WHEN a Value Changed (I add a second component)

THEN add a definied Person (Mark) to a User Picker (Multi)

 

flow 1.PNG

 

But: The 'Edit Issue' Action overrides existing Users in this field. I only want to have to add an additonal User (if the User is not already there). At the moment I have only one user there.

 

How an I achieve this?

Best,

Hannes

1 answer

5 votes
Hana Kučerová
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
December 10, 2020

Hi @Hannes ,

I was able to make it work using Additional fields section in Edit issue action.

xxxxx ... id of you CAB Advisors custom field

yyyyy ... account id of your user 

 

{
"update": {
"customfield_xxxxx" : [
{
"add": {
"accountId" : "yyyyy"
}
}
]
}
}

Maybe you can also create user picker custom field and store your user there. Then you should be able to copy the user from this custom field and add him to existing ones.

Martin Fukatko January 10, 2022

Hi @Hana Kučerová ,

I need to add assignee and reporter into custom field Cooperators (User Picker Multi).

Do you know what should JSON look like for Additional fields?

Thanks,

Martin

Martin Fukatko January 10, 2022

I've found solution myself

{
"update": {
"customfield_10055" : [
{
"add": { "accountId" : "{{assignee.accountId}}" }
},
{
"add": { "accountId" : "{{reporter.accountId}}" }
}
]
}
}
Like 2 people like this
Stéphane PINARD
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 16, 2022 edited

Hy unfortunaly is doesnt works for me...

I'm trying to add an assignee of a issue in the request participant of an linked issue but I can't succeed.

Here is my additional fields configuration  :

{
"update":{
"Request participants": [{
"add" : { "accountId" : "{{triggerIssue.assignee.accountId}}" }
}]
}
}

When i log it , i got the assigne id "JIRAUSERXXXXX" but i also get an error on the edit issue step  : "Error editing issue TICKETNUMBER(null)

 

Can you help me, i'm running out of solution ( more than 185 tests....)

 

Martin Fukatko February 16, 2022

I never met this error.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events