Heads up! On March 5, starting at 4:30 PM Central Time, our community will be undergoing scheduled maintenance for a few hours. During this time, you will find the site temporarily inaccessible. Thanks for your patience. Read more.
×I want to execute the below bahaviour script in my form.There is no error in the script, but it does not work on the form.
Also this shows type error when I copy the code in console tab.I amusing script runner 8.36 version.
Could you please help?
Your script looks correct, did you verify the IDs of the fields?
def priorityField = getFieldById(getFieldChanged())
def status = priorityField.getValue()
def priorityReason = getFieldById("customfield_12345")
if (status == "Blocker") {
priorityReason.setRequired(true)
priorityReason.setHelpText("Please provide a reason behind the blocker")
} else {
priorityReason.setRequired(false)
priorityReason.setHelpText("")
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.