I am trying to use scriptrunner to hide/show a checklist field but I am getting an error - the field xyz is not hideable, so it will only be hidden when the issue is editable. The field shows on the view/edit screen and I would like this to only be viewable by one group(team)which is the helpdesk. I have not created behaviors with scriptrunner before so this is all new to me.
My code is as follows:
import com.okapya.jira.checklist.*
def checkboxField = getFieldByName("Checklist for Helpdesk")
def selectList = getFieldByName("Team.")
def selectListValue = selectList.getValue()
if (selectListValue == "Helpdesk") {
checkboxField.setHidden(false)
}
else {
checkboxField.setHidden(true)
}
Hi Beth,
Sorry for the late response.
I recently tried the ScriptRunner Behavior plugin on a Checkboxes custom field and the result is the same as the Checklist plugin. It is still visible in the Issue Detail, and will be hidden only in the Edit Issue view.
From what I understand, this is how the Behavior plugin works.
Greetings,
Maxime
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.