I am going crazy. We updated our Jira instance to the latest. Scriptrunner did not have a valid update for that version of Jira, until a few days ago. So I was hoping this was the cause.
However after updating the ScriptRunner 8.8.0 the problem still persists. All of my Behaviors, which were working a week or two ago… all do absolutely nothing. And all indicate that they executed correctly. They are almost all pretty simple things.
And it 100% is mapped to a JSM project/issue.
Here is a simple example. We have a drop down for some pre-populated templates for one of our issues/requests. So in the below example, if you selected “option1” from the select list, it would prefill in the description, and make it read only. If you remove the selection, or select something different, the description field clears itself.
I have been running this for a couple years now with no issues until now.
def selectListField = getFieldById("customfield_12900")
def selectListValue = selectListField.value
def textField = getFieldByName("Description")
def text = "Pre-made text stuff here"
if (selectListValue == "option1") {
textField.setFormValue(text)
textField.setReadOnly(true)
} else {
textField.setHidden(false)
textField.setReadOnly(false)
textField.setFormValue(" ")
}
Losing my mind on what’s going on here. Any help would be appreciated!