I have writeen a code for the requirement -I would like to display CustomField only when i pick a specific resolution value.
Code:
import static com.atlassian.jira.issue.IssueFieldConstants.RESOLUTION
def resolutionField = getFieldById(RESOLUTION)
def TestField = getFieldById("customfield_30200")
if (resolutionField.getValue().toString().equals('Fixed'))
TestField.setHidden(false)
} else
{ TestField.setHidden(true) }
But it The field is not getting affected by any value change while transition .
It is always going directly to else loop not taking the selected value from resolution field .
Please have a look into it .