How to write an advanced function that can append users in the Multiple Assignees field?

Maham Nadeem May 4, 2023
  • Automation Rule I want to enable: When the assignee field is changed, the last assignee should be added to the Multiple Assignees field on the issue. 
  • If I try to implement this using smart values, the last assignee replaces any value in the field instead of appending the new value in the field.
  • I have tried to achieve this using advanced functions. The audit log shows SUCCESS but the function does not do anything i.e the Multiple Assignees field is not updated when the Assignee on the ticket is changed. 
  • Multiple Assignees field is a multi-select user field. 
  • 2023-05-04 14 07 29.png

1 answer

1 accepted

1 vote
Answer accepted
Trudy Claspill
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 4, 2023

Hello @Maham Nadeem 

Welcome to the Atlassian community!

This is the JSON that you need:

{
"update":{
"Multiple assignees":[
{
"add":{
"id":"{{changelog.assignee.from}}"
}
}
]
}
}
Bill Sheboy
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.
May 4, 2023

Hi @Maham Nadeem -- Welcome to the Atlassian Community!

Adding to Trudy's answer, here is the how-to documentation for making a JSON edit like that for multiple-user fields:

https://support.atlassian.com/cloud-automation/docs/advanced-field-editing-using-json/#Multi-user-picker-custom-field

Kind regards,
Bill

Like Trudy Claspill likes this
Maham Nadeem May 5, 2023

It works! 

The heartiest thank you @Trudy Claspill @Bill Sheboy
Both of you have been the most kind! 

Grateful to be part of this community.

Like Bill Sheboy likes this

Suggest an answer

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

Atlassian Community Events