Good day
I'm trying to show set of priorities in depend of custom field value.
When behaviour shows hided priority it removes icon.
private void setCorrectPriorities(String IssueType) {
def constantsManager = ComponentAccessor.getConstantsManager()
def prioritynames
if (IssueType == "Service GS") {
prioritynames = ["Low", "Medium", "High"]
} else {
prioritynames = ["Low", "Medium"]
}
def allowedPriorities = constantsManager.getPriorities().findAll {
it.name in prioritynames
}.collectEntries {
[(it.id): it.name]
}
log.debug("allowed priorities for ${IssueType}: ${prioritynames}")
getFieldById(PRIORITY).setFieldOptions(allowedPriorities)
}
Does anyone knows what to do with it
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.