Forums

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

Changing the value in Team field in Jira Automation

Dejan Velevski June 26, 2025

Hi, 

I'm trying to put a name into the Team field. We are using Data Center v.9.13 and in the Jira Software Project the Team field is not in use. But I use it in my Plans (Advance Roadmap) where I have established a Team.
I want to automate, when a story is created (or pulled into the "In Work") automatically to add the team name, which I whant to use into my Plans project. So this Team Field is irrelevant for the Jira Software procjet, and I want to use it only in Plans.

I have tried the following:
{
"fields": {
"customfield_10201": "{{issue.team}}"
}
}
where "customfield_10201" I found it through the rest api. Also the Id is. 135:

  • customfield_10201:{
    • id: 135,
    • name: "Example Team"
    }

But as a result in Plans I don't receive anything. I also created a Log Action: Team: {{issue.Team}}, and Team: {{issue.customfield_10201}}, but nothing is comming here.

If I put in the action:
{
"fields": {
"Team": "{{issue.team}}"
}
},
then I get this error:
"Additional fields contains invalid field(s) in 'update' or 'fields' section: Team"

Any tipps?

4 answers

1 vote
Gor Greyan
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.
June 28, 2025

Hi @Dejan Velevski

Thanks for the question.
The 
Advanced Roadmaps Team Field requires ID, not name. The team field value must be a numeric ID.
Try the following one.

{
"fields": {
"customfield_10201": 135
}
}

Make sure to replace 135 with the actual ID of your team.

Also, in the same rule, add Log Action; this will help identify the gap.

Team ID (customfield_10201): {{issue.customfield_10201}}

Let me know if you succeed.



Dejan Velevski July 2, 2025

Hi, 

I already tried that. It returns an error (see foto)TeamFieldError.png

Gor Greyan
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.
July 3, 2025

Hey @Dejan Velevski
Thanks for the answer.

Please try the following one, I have missed "" characters.

{
"fields": {
"customfield_10201": "135"
}
}

You can change 135 with your Team ID.

Dejan Velevski July 4, 2025

Hi,

Already tried, the result is the same, i.e it returns nothing :(

Gor Greyan
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.
July 4, 2025

Hi @Dejan Velevski
{
"fields": {
"customfield_10201": { "id": "135" }
}
}

Please try with this one.

1 vote
Tomislav Tobijas
Community Champion
June 26, 2025

Hi @Dejan Velevski ,

We have this automation on cloud but it might be that same thing applies to DC (although I'm not sure about team IDs). Anyway, we're using advanced fields section within Edit work item fields action and the following JSON:

{
"fields": {
"customfield_10001":"123456-abcd-9876-efgh-5b021607a4b2"
}
}

where we basically navigate to the team profile and check the browser address bar to find the ID of a team. Again, I haven't properly checked the ways to get Team ID on DC. 🤔

Also, on the cloud, the Team field always has ID 10001.

I don't have an on-prem environment, so I couldn't test this out, but hopefully this might help (guide you in some direction) 👀

Cheers,
Tobi

Dejan Velevski July 2, 2025

Hi @Tomislav Tobijas ,

thanks for the answer... but if you are talking about this (see foto) in Cloud, in DC there is no such thing. The Team is created in Plans (advanced Roadmap) and there is no such a thing as you posted: 

"123456-abcd-9876-efgh-5b021607a4b2"Team in Jira Cloud.png
Like Tomislav Tobijas likes this
Tomislav Tobijas
Community Champion
July 6, 2025

@Dejan Velevski yeah, that's it on the cloud.

As I don't have a DC environment at the moment, I would recommend trying to check on how JSON for a specific item/issue, which has a Team set, looks like.

You could try to navigate to https://<base-url>/rest/api/2/issue/<issue-key> and see how everything looks on the backend. (This is for cloud, but I believe the same URL/endpoint is on DC)

Then, try to find the Team field and see how values are stored there 👀

0 votes
Prachi Bolar
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 29, 2025

hello,

Welcome to Community :) 

You. can do it via automation

Screenshot 2025-06-30 at 11.09.56 AM.png

 

Requirements : 

Team Field : https://abc.atlassian.net/secure/admin/ConfigureCustomField!default.jspa?*customFieldId=ID*
Team Name: TEST ABC
Team Id : JQL: "Team[Team]" = "TEAMID"
Code to be used in automation

{
"fields": {
"customfield_ID":"TEAMID"

    }
}

 

Thank YOu,

prachi 

0 votes
Dilip
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 26, 2025

Hi @Dejan Velevski 

try below

{
    "fields": {
        "customfield_10304": "{{issue.Team.id}}"
    }
}

Dejan Velevski July 4, 2025

Hi @Dilip 

I tried that already and it returns nothing :( i.e. I don't see it in the Audit Logs. For example, I have added the Date, i.e. {{now}} also in the logs:
Fields successfully setted Start Date:{{now}}, and Team:{{issue.Team.id}}, and Team: {{issue.customfield_10201}}, the Audit Logs are:
(SEE FOTO)Audit Log.png

where in "Edit issue" I have:
{
"fields": {
"Start Date": "{{now}}",
"customfield_10201": "{{issue.Team.id}}"
}
}

Suggest an answer

Log in or Sign up to answer