HI
I am trying to migrate from JIRA ON-PREM to JIRA CLoud, but running into issues with a custom ‘locked’ field migrating over.
is the error due to the fact that the custom field is locked? i cant even unlock it.
what is the work around?
here is the error i get:
2023-09-29 23:54:59.936358 ERROR LOOP project-export The workflow: [PTS Customer Issue Workflow] transition: [In Progress] has unsupported custom field reference in config fieldKey for workflow rule validator [FieldRequiredValidator]. [JCMA 134] Double-check the workflow rule for missing config values or references.
Hello @Gagan Inder Sekhon
None option is null, so script should be like this
import com.onresolve.jira.groovy.user.FieldBehaviours
import groovy.transform.BaseScript
@BaseScript FieldBehaviours fieldBehaviours
def approver = getFieldByName("reason for the leave")
def tOL = getFieldById(getFieldChanged())
def selectedOption = tOL.getValue() as String
if (selectedOption == null) {
approver.setHidden(true)
} else {
approver.setHidden(false)
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.