Forums

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

Automation Variable Lookup Syntax to populate Team field

Rick November 6, 2025

Hello

I’ve created a new JSM Request Form that has a field called “Business Team” with 3 Options.
For some reason - I can’t  link this to the “Team” field in Jira?

So I’ve created a new custom field called “Business Team” id _15220 and linked the form to this instead
I now want to automate the population of the 'Team' Field using the Business Team Value

I’ve created an Automation as follows:
On Creation
Create a variable {{businessTeam}}
Create Lookup table {{busteam}}

  Key / Value
     Developers / Team A  
     Engineers / Team B
     Operations / Team C

Edit work item fields = 

But here I get stuck with the syntax
I (think I) want to GET  Value of busteam to populate TEAM (customfield_11800)
Any ideas what the  final Edit work item / Additional Field syntax should be for this scenario?

4 answers

2 votes
Izabela França
Community Champion
November 6, 2025

Hello @Rick ,

If you are using the native Team in Jira, this field works a bit differently. From what I tested, I couldn't update it using the team name/value, I had to use the Team ID. I also could not find the Team field in the edit action either, so I used JSON. With that in mind, here’s the suggested structure that worked for me:

Note: You can find the Team ID by checking the URL of the team’s page.

team.jpg

And here is JSON:

{
"fields": {
"customfield_10001": "2c70e7e3-xxxx-xxxx-xxxx-xxxxxxx (TEAM ID)"
}
}

 

0 votes
Duc Thang TRAN
Contributor
November 6, 2025

Hello @Rick 

As  @Izabela França  suggested, you should use JSON to modify the Team.

And i see you are using lookup table

For example, a table named Business_Team with a key column containing values “Business Team” and a value column need to contain   your team IDs.

The JSON would be structured accordingly.

{
"fields": {
"Team": "{{Business_Team.get(issue.Business Team.value)}}
"
}
}
 

0 votes
Rudy Holtkamp
Community Champion
November 6, 2025

Hi, 

If I understand you well, you should be helped with:

{{busteam.get(issue.Business Team.value)}}

Let me know if that works for you.

Rick November 6, 2025

Thanks for the speedy reply Rudy -  I think this is part of what I was looking for

The remaining issue is...
 In the Edit Work Item Component
 I can't choose 'Team' as the field to set! 

So I think I might need a longer syntax along the lines of
 (Please forgive my lack of smart value syntax!):

customfield_11800 =  {{busteam.get(issue.Business Team.value)}} 

Rudy Holtkamp
Community Champion
November 6, 2025

Hi @Rick ,

That is odd, if I add the action 'edit work item', I'm able to select 'Teams' as field.

image.png

There I can add my smart value.

I'm not sure if this will work, I can remember that you should add it via more options and then supply the field values. And instead of the team names, you should use the team id.

But first try to use the names, maybe something has changed in the last two years.

 

Like Rick likes this
Rick November 6, 2025

Cheers John - I had looked at these but still couldn't work out what I needed unfortunately 

Like John Funk likes this
John Funk
Community Champion
November 6, 2025

Are you using the More options for the Action and putting the JSON example in there? 

Suggest an answer

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

Atlassian Community Events