post functions - import static java.util.Calendar.YEAR

Deleted user May 27, 2015
import static java.util.Calendar.YEAR 
def date = new Date() 
def nextYear = date[YEAR] + 1 
if(issue.get("customfield_11890")=="Critical"){ nextYear = date[YEAR] + 1 } 
else if(issue.get("customfield_11890")=="Major"){ nextYear = date[YEAR] + 2 } else if(issue.get("customfield_11890")=="Minor"){ nextYear = date[YEAR] + 2 } else if(issue.get("customfield_11890")=="Trivial"){ nextYear = date[YEAR] + 3 } date.set(year: nextYear) date.format('dd/MMM/yy') return date

1 answer

0 votes
Deleted user May 27, 2015

having issues with this post function.

Silently does nothing. any idea what the error is?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events