Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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

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

0 votes
Hana Kučerová Community Leader Dec 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.

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

I've found solution myself

{
"update": {
"customfield_10055" : [
{
"add": { "accountId" : "{{assignee.accountId}}" }
},
{
"add": { "accountId" : "{{reporter.accountId}}" }
}
]
}
}
Like Hana Kučerová likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Site Admin
TAGS
Community showcase
Published in Jira Service Management

Next level incident management in Jira Service Management

Hello Atlassian Community! We’re thrilled to announce some exciting changes to incident management in Jira Service Management Cloud, in order to give your teams extra muscle during incidents, and ...

1,499 views 20 12
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you