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?
Hi @Sean Blezard ,
Tried the API that shows the fields available for bulk edit api: https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-bulk-operations/#api-rest-api-3-bulk-issues-fields-get, thus confirming to your statement that the Bulk edit issues API won't support the "Team" field.
If the process of updating this field is going to be recurring I would suggest making a small script that runs in a loop and use the "Edit Issue" API to update 1 issue at a time.
I personally use Postman, which can also be used for a similar action, you can keep updating the team variable for the issue that you need.
Spend the day sharpening your skills in Atlassian Cloud Organization Admin or Jira Administration, then take the exam onsite. Already ready? Take one - or more - of 12 different certification exams while you’re in Anaheim at Team' 25.
Learn more
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.