The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Deleted user
May 27, 2015

having issues with this post function.

Silently does nothing. any idea what the error is?

TAGS
AUG Leaders

Atlassian Community Events