I am trying to bulk update the team field - the one that is provided OOTB by Jira Cloud. I couldn't find it on the standard bulk edit screen and haven't the energy to mess around with a Jira automation trigger based on a label etc. (although it might come to that).
I thought it would be easier with the API:
But team field isn't one of the types listed and I can't the existing ones to work.
Has anyone managed to get this API endpoint working with the team field?
Thanks,
Sean
Update 1:
I tried this payload but it returned:
{"errors":[{"message":"Cannot assign a non-existing team"}]}
Payload:
payload = {
"editedFieldsInput": {
"singleSelectFields": [
{
"fieldId": "customfield_14504",
"option": {
"id": team_uuid
}
}
]
},
"selectedIssueIdsOrKeys": batch,
"selectedActions": ["customfield_14504"],
"sendBulkNotification": False
}
This made me think the singleSelectFields option might work but clearly not since the value I passed in (the hex-dec key) was a valid team.
Update 2:
I was able to update the team field with the single issue update API endpoint using a payload like this:
{
"fields": {
"customfield_14504": team_uuid
}
}
Is it simply the case that the bulk update endpoint doesn't work properly yet, for the OOTB team field? Am I going to have to iterate over an update for every issue I want to do a bulk update on?