Groovy Script silently does nothing, I don't know where the logs are to diagnose. is there a log created for groovy errors?
The value of field Supplier Re-evaluation Date of the current issue will be set to the result of a Groovy expression (replacing existing values).
import static java.util.Calendar.YEAR;
def year = new Date();
if(issue.get("Priority")=="Critical")
{ def year = today[YEAR] + 1 }
else if(issue.get("Priority")=="Major")
{ def year = today[YEAR] + 2; } else if(issue.get("Priority")=="Minor"){ def year = today[YEAR] + 2; }
else if(issue.get("Priority")=="Trivial")
{ def year = today[YEAR] + 3; }
else
{ def year = today[YEAR]; }
year.format('dd/MMM/yy');
Return year;