Hi
I want to set the Priority to Major when the below condition is true, I have used "set field value (JMWE for jira server)", but it not setting to Major. Could you please anyone correct the equal script ?
(issue.getAsString("Issue Type") == "Change Request" || issue.getAsString("Issue Type") =="Bug" ) && issue.get("Need By Date") == new Date()
or
(issue.getAsString("Issue Type") == "Change Request" || issue.getAsString("Issue Type") =="Bug" ) && issue.get("Need By Date").equals(new Date())
but these are working,
(issue.getAsString("Issue Type") == "Change Request" || issue.getAsString("Issue Type") =="Bug" ) && issue.get("Need By Date").before( new Date() )
and
(issue.getAsString("Issue Type") == "Change Request" || issue.getAsString("Issue Type") =="Bug" ) && issue.get("Need By Date").after( new Date() )