Hi, I need a little help to build a script that does the following:
For a specific issue type, a custom field is required when this issue is closed.
Some background:
- The project has several issue types
- When the issue type "Service Desk" is being Closed (transition) the script must validate if custom field is not empty (it's a Select List (single choice) type).
I'm new at JIRA and I'm not a developer, so any help is highly appreciated 
I looked at this behaviour example and I think this will do the trick, however set to issue type instead of Resolution....any clue where I should start?
import com.atlassian.jira.issue.resolution.Resolution
def resolutionField = getFieldById("resolution")
def fixVersionsField = getFieldById("fixVersions")
def resolution = resolutionField.getValue() as Resolution
if (resolution.name == "Fixed") {
fixVersionsField.setRequired(true)
fixVersionsField.setHidden(false)
}
else {
fixVersionsField.setRequired(false)
fixVersionsField.setHidden(true)
}