Forums

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

Looking for a bulk update API to add fix versions to multiple issues at once

ethan mcmeekin August 3, 2022

I'm trying to use the Jira API to update a list of jira issues with a fix version.

I've had limited success updating individual Issues with:

PUT /rest/api/2/issue/{IssueID}
body: 

{
    "update": {
        "fixVersions": [
            {
                "add": {"name""FixVersionX"}
            }
        ]
    }
}

However I don't want to have to loop through possibly hundreds of issues on a regular basis. Is there an API that would allow me to make this update to a list of Jira Issues by ID?

1 answer

0 votes
Trudy Claspill
Community Champion
August 3, 2022

Hello @ethan mcmeekin 

It appears there is not such an API for Jira Server natively. There was a change request for it, but Atlassian has closed that as "Won't Do".

https://jira.atlassian.com/browse/JRASERVER-34707

ethan mcmeekin August 3, 2022

Thanks @Trudy Claspill , It looks like another one is gathering interest - https://jira.atlassian.com/browse/JRACLOUD-70356

ethan mcmeekin August 3, 2022

It looks like there is a bulk update for properties of Issues, any idea if this can be utilized to update the fixversion? https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-properties/#api-rest-api-3-issue-properties-post

It looks like issue.fixVersions.name is the property key from here  -https://support.atlassian.com/cloud-automation/docs/jira-smart-values-issues/

But any time I try to call the property API (even GETs) I get a forbidden 403 response which doesn't seem to make sense given I have access to edit the same issue as above with the same user.

EG. GET /api/2/issue/{IssueID}/properties/issue.fixVersions.name

Trudy Claspill
Community Champion
August 3, 2022

The issue that is Gathering Interest is only for Jira Cloud, not Jira Server.

I have not worked with the Properties API before.

Suggest an answer

Log in or Sign up to answer