Hi,
I want that Time spent will be mandatory in the resolution value ="Tested"
but it doesn't work
see my script:
--------------------------------------------------------------------
import com.atlassian.jira.issue.resolution.Resolution
def resolutionField = getFieldById("resolution")
def resolution = resolutionField.getValue() as Resolution
def timeSpent = getFieldByName("TimeSpent")
log.debug("resolution Value" + resolution)
if (resolution.name != "Tested"){
timeSpent.setRequired(false);
}else{
timeSpent.setRequired(true);
}
----------------------------------------------------------------------------
What I'm doing wrong?
Thanks.