How do I update a version name

David McBride September 16, 2016

I've been using the "create_version" jira-python function, which is very useful. However, I sometimes need to change a version name across dozens of projects and there doesn't seem to be an "update_version" function, unless I've totally missed it.

Presumably, this would use the 'Update Version' JIRA rest API.

1 answer

0 votes
Petar Petrov (Appfire)
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.
September 16, 2016

There does not seem to be a function which does that, but as you guessed, you can still use the REST API. Execute the following request (see documentation here):

PUT /rest/api/2/version/{id}

Requests is a pretty good http client library for python.

David McBride September 16, 2016

Ok - thanks for the tip.  I'm a little confused about how to compose the URL, which is the value for the key 'self':

from the documentation:
"self": "http://www.example.com/jira/rest/api/2/version/10000"

The JIRA server I'm working with has URL 

https://jira.something.org

Suggest an answer

Log in or Sign up to answer