Forums

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

Automation: Update People field with values from another people field

Kevin Cressy
Contributor
August 6, 2022

I am using a Team-Managed Kanban Project.

 

Hi I am trying to use automation to update a people field based on the values from other people fields.

 

I have three fields:

  1. "Assignee" (this is the standard Jira field)
  2. "Project Team Members" this is a custom people field, and can contain multiple people.
  3. "Managers" this is a custom people field, and can contain multiple people.
  4. "All Team Members" this is a custom people field, and can contain multiple people.

 

I want to update the "All Team Members" if any of the fields in 1, 2 or 3 above are changed.  The "All Team Members" members field should then include all people from 1, 2 and 3.

I have been playing with the "Edit issue fields" Automation but haven't managed to find the correct code to make this work.

I have managed to update the "All Team Members" field with the Assignee using the code below, but that is as far as I have got.

{
"update": {
"All Team Members": [
{
"add": {"id":"{{issue.assignee.accountId}}"}
}
]
}
}

 

1 answer

1 accepted

1 vote
Answer accepted
Kevin Cressy
Contributor
August 6, 2022

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events