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?
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.
And here is JSON:
{
"fields": {
"customfield_10001": "2c70e7e3-xxxx-xxxx-xxxx-xxxxxxx (TEAM ID)"
}
}
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)}}
"
}
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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)}}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Rick ,
That is odd, if I add the action 'edit work item', I'm able to select 'Teams' as field.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Rick,
Here's an article that might help you:
https://community.atlassian.com/forums/Jira-articles/Two-ways-to-update-the-Team-field/ba-p/2567910
And another one:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.