Hello,
We have a multi select list field with different values. It is called 'Tool/s' . (values are: JIRA, Confluence, Github , etc).
We want that a description is added to the 'description' field when certain values are selected in the 'Tool/s' field:
def Tools = getFieldByName("Tool/s")
def descField = getFieldById("description")
def toolsvalue = Tools.getValue()
if (toolsvalue.toString().contains("JIRA")) { // choose tools by name
descField.setHelpText("text added here.")
descField.setRequired(true)
} else if (toolsvalue.toString().contains("Github")) {
descField.setHelpText("a different help text ")
descField.setRequired(true)
}
else if (toolsvalue.toString().contains("Confluence")) {
descField.setHelpText("confluence specific text")
descField.setRequired(true)
}
else {
descField.clearHelpText()
descField.setRequired(false)
}
This works when individual values are selected. But "Tool/s" is a multiple select list, and the above code does not work when both "JIRA" & "Confluence" are selected, or when all of the values are selected.
Please let me know if that would be possible, and how.
Thank you!