Releasing project version using Transitions

I am thinking about creating a release workflow for some of my projects. I would like to create a "Release" issue, and have a transition called "Release", which would close the JIRA release version (mark the version as "Released") associated with that issue (the "Fix Version" of that issue). Currently I manually administer the project, click the cog icon next to the release version, then mark it as released.

Can this be done?

2 answers

1 accepted

0 votes
Accepted answer

You will have to develop a post function that does this. Use VersionManager.

No idea what you mean at all.  I am not finding the documentation clear at all.  So what exactly am I mean to do with a post function and I have no idea how to use VersionManager.  Perhaps you could give me step by step guide as I am new to Jira.  The only reason I am using Jira is for defect management from TestRail.

 

Thanks

 

Sian

This post is nearly 5 years old, and things have moved on a bit.  As an old question, only a limited number of people will have seen your reply too.

I suggest you re-ask the question of the whole community, detailing your scenario, mentioning that you're using TestRail explicitly (as this question is not about TestRail at all).

Thanks Nic

 

I shall do so.

 

Kind regards

 

Sian

If anyone looking for an answer to @Siddharth Srinivasan's  question,

 

import com.atlassian.jira.component.ComponentAccessor

def project = ComponentAccessor.getProjectManager().getProjectByCurrentKey("PROJECT KEY")
def versionManager = ComponentAccessor.getVersionManager()

def version = versionManager.getVersion(project.getId(), issue.getFixVersions())
versionManager.releaseVersion(version, true)

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Wednesday in Jira

Make your Atlassian Cloud products more secure: our NEW admin security guide

Hey admins! I’m Dave, Principal Product Manager here at Atlassian working on our cloud platform and security products. Cloud security is a moving target. As you adopt more products, employees consta...

90 views 0 4
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you