Forums

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

Setting Multi User Field via automation

Harsh
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 4, 2024

Hi all,

I know how to set a user via automation. But currently I am struggling to set multi user fields from a group in JIRA.

I have a group in JIRA and a multi user field. 
What I want is when issue transitioned from In Progress to Review, I want the multi user field to be populated with all the users in group via automation. Is this is achievable via JSON or any smart value? 

Thank you

2 answers

0 votes
Marc - Devoteam
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 4, 2024

Hi @Harsh 

It should be possible with JSON I think.

You could look at this former community post; Trying-to-populate-a-multi-user-picker-custom-field-with-members 

Harsh
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 4, 2024

Hi @Marc - Devoteam 

Thanks for the update, unfortunately the JSON throws an error - No fields or field values to edit for issues (could be due to some field values not existing in a given project)
But the field is existing in the project.

Any suggestion?

Marc - Devoteam
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 4, 2024

I think then your only option is to set in the JSON something like, the following.

Specify the ustom field and ad the individual account id's of each member.

"customfield_11458" : [ { "id":"2s1863211f0z284c45269423" }, { "id":"332212e13z52142111269423" }]
Harsh
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 4, 2024

Hi @Marc - Devoteam 

I have already tries this but this is what I don't want, because we don't know when a new user will be added or  a user will be deleted. 

Drawback for this will we have to monitor the group regularly and update the automation.

0 votes
Tansu Akdeniz
Community Champion
March 4, 2024

Hi @Harsh 

Please see this workaround: How to retrieve users from a specific group with simple Jira automation rules 

There is an open ticket: AUTO-312. Please watch and vote it.

Suggest an answer

Log in or Sign up to answer