Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

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
PD Sheehan
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.
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(project.id, versionname)
versionObject = versionManager.releaseVersion(versionObject, true)
Roy Powell July 26, 2021

Thank you @PD Sheehan this is exactly what I needed! I appreciate the help here

TAGS
AUG Leaders

Atlassian Community Events