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.
What is the TimeSpent field? If you mean that the timespent field, then you can not add it to screens. All you can add is :
etFieldById("timetracking_originalestimate") getFieldById("timetracking_remainingestimate")
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.