I have a Board named ASDF, In that board under Relaeses tab I have a Version named: QWER. This version has 3 issues.
I want to change the status of the version to "Released" if all the issues are in "done" state. I don't know how to change the status to "Released".
I am trying to do this using JIRA-Python REST-API. I am also open to CLI method.
To update release status you can use the following Rest API with PUT method.
"description": "An excellent version",
"name": "New Version 1",
So, if you are going to use JIRA-Python-API:
You'll need to create a function "release_version" to update release it will be similar to "create_version" with add "id" and change the Rest method to be PUT instead of Post
So, to achieve your scenario:
I hope this will help
def release_version(self, name, project):
version = self.get_project_version_by_name(project, name)
This is new method "release_version" in redefined class
@tony cameraman please check out this previously answered question to see if it resolves your question: https://community.atlassian.com/t5/Answers-Developer-Questions/How-to-release-a-version-using-REST-api/qaq-p/563559
Jira is a great tool to use across different departments. Forget that paperwork – switch to Jira and get that tasks done smoothly. Marketing Jira allows for a complete digital transformation of you...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events