pycontribs / jira

Python Jira library. Development chat available on https://matrix.to/#/#pycontribs:matrix.org
https://jira.readthedocs.io
BSD 2-Clause "Simplified" License
1.93k stars 860 forks source link

Support for Version Update #886

Open jericopingul opened 4 years ago

jericopingul commented 4 years ago

Is your feature request related to a problem? Please describe. Currently versions can only be created and cannot be updated. A use case is changing the release state to true.

Describe the solution you'd like New method update_version to be created

Describe alternatives you've considered No alternatives

Additional context Jira api currently supports updating version https://developer.atlassian.com/cloud/jira/platform/rest/v3/?utm_source=%2Fcloud%2Fjira%2Fplatform%2Frest%2F&utm_medium=302#api-rest-api-3-version-id-put

frederikvs commented 4 years ago

I ran into the same issue : I want a python script to be able to put versions to released in Jira.

Took a bit of digging around, and it's not really documented clearly, but I managed to get it to work, and it's surprisingly simple (once you know how) :

version_to_release = jira.project_versions("PROJ")[0]
version_to_release.update(released=True)

Maybe the documentation should be updated? Anyway, leaving this here for other people who want the same thing :-)