Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,461,043
Community Members
 
Community Events
176
Community Groups

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

2 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 # people like this

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....)

 

I never met this error.

Suggest an answer

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

Atlassian Community Events