Forums

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

Get sprint end date and set it to another field scriptrunner

Mihai Mihai
Contributor
February 26, 2019

Hello,

We would like to set a value in a date field, based on the sprint end date.

So if the sprint end date is 2/26/2019, that field would get this value.

Would this be possible using scriptrunner? If so, would anyone know how to do that?

Thank you!

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 Champions.
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