How update the Team value for an issue via REST API

Hi,

How can I update the Team value (from Advanced Roadmaps) using REST API?

If I GET the editmeta for an issue, e.g.: http://localhost:2990/jira/rest/api/2/issue/10008/editmeta I get:

 "customfield_10008": {
    "required": false,
    "schema": {
        "type": "any",
        "custom": "com.atlassian.teams:rm-teams-custom-field-team",
        "customId": 10008
    },
    "name": "Team",
    "fieldId": "customfield_10008",
    "operations": [
        "set"
    ]
},

so then I tried updating with:
PUT http://localhost:2990/jira/rest/api/2/issue/10008 with the body:

{
    "update": {
        "customfield_10008": [
            {
                "set": {
                    "id": "3"
                }
            }
        ]
    }
}

but this results in a 400 Bad request:

{
    "errorMessages": [],
    "errors": {
        "customfield_10008": "operation must be string"
    }
}

As a comparison, I tried the same pattern but for priority which works just fine.
Am I missing something here or does the Advanced Roadmaps and the Team field differ somehow?

Thanks,
Fredrik

Hello @freatt

You don’t update the Team field, you just directly set it by specifying the team’s ID:

{
    "fields": {
        "customfield_10008": "d8327cd2-05f7-4bc0-b531-bf8whatever"
	}
}

Refer to the documentation about the Team field.

That did the trick - thanks!

Thanks,
Fredrik