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

How to mark a FixVersion as "Released" using Scriptrunner

Roy Powell July 23, 2021

I am looking to update the state of a FixVersion from Unreleased to Released using  scriptrunner. Does anyone have the code snippet showing how to do this? I already have the rest of the logic I need, but I don't know how to make that specific change to a FixVersion.

1 answer

1 accepted

Suggest an answer

Log in or Sign up to answer
0 votes
Answer accepted
Peter-Dave Sheehan
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 23, 2021

It would help to know what you have so far.

But the VersionManager has a method to release a version:

So the snippet would be

def versionManager = ComponentAccessor.versionManager
def versionObject = versionManager.getVersion(, versionname)
versionObject = versionManager.releaseVersion(versionObject, true)
Roy Powell July 26, 2021

Thank you @Peter-Dave Sheehan this is exactly what I needed! I appreciate the help here

AUG Leaders

Atlassian Community Events