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")
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.