Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

What is the REST API call for adding a fix version to a Jira item?

Victor Glava April 12, 2012

I am trying to add a fix version to a particular set of Jira items via the Jira REST API. Our current version of JIRA is v5.0.2.

2 answers

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

1 vote
Answer accepted
Jobin Kuruvilla [Adaptavist]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 12, 2012
Terryl May 20, 2013

It appears the anchor in this link is broken.

Like Vlad Holubiev likes this
5 votes
J F September 30, 2015
PUT rest/api/2/issue/{key}

{
    "update": {
        "fixVersions" : [
            {"set":
                [
                    {"name" : "My Version"}
                ]
            }
        ]
    }
}
Thomas Bores November 29, 2015

Thank you, it is working.

Deleted user November 8, 2016

Strange that add doesn't work

PUT rest/api/2/issue/{key}

{
    "update": {
        "fixVersions" : [
            {"add":
                [
                    {"name" : "My Version"}
                ]
            }
        ]
    }
}

 

But if you try "append" it tells you the only options that are available are add, remove, and set.

Deleted user November 8, 2016

Correction it does work but with a different structure:

PUT rest/api/2/issue/{key}

{
    "update": {
        "fixVersions" : [
            {"add":
                {"name" : "My Version"}
            }
        ]
    }
}

 

Like # people like this
TAGS
AUG Leaders

Atlassian Community Events