How to update team value for an issue

vykalra
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 29, 2025

Hi,

I want to update the team value for an issue. I tried both the following approaches using PUT operation on <>/ rest/api/3/issue

Approach 1:

 

{
    "fields": {
        "customfield_10001": {
            "id": "<corresponding id that I got from teams api>"
        }
    }
}
Approach 2:

 

{
   "update": {
    "customfield_10001": [
      {
        "set": {
          "value": "ERP_Technical"
        }
      }
    ]
  }
}

 but both do not work. Can someone help me with the correct json to update it?

1 answer

1 accepted

2 votes
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.
January 29, 2025

Hello @vykalra 

Welcome to the Atlassian community.

This syntax should work:

{
"fields": {
"customfield_10100" : "{id}"
}
}

Replace customfield_10100 with the identifier for the Team field in your instance.

Replace {id} with the ID value of the Team.

vykalra
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 29, 2025

Thanks @Trudy , this works

Suggest an answer

Log in or Sign up to answer