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

Suggest an answer

Log in or Sign up to answer
0 votes
Tom Lister
Community Champion
November 3, 2018

Hi @Mamta Verma

def customFieldManager = ComponentAccessor.getCustomFieldManager()
def fieldObj = customFieldManager().getCustomFieldObjectByName("FieldName")
def value_field = issue.getCustomFieldValue(fieldObj)


value_field should be a List of strings for normal select or a list of Versions for a field like Fix Versions.
TAGS
AUG Leaders

Atlassian Community Events