Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Server to Cloud migration

mike shoukry
September 29, 2023

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.

1 answer

0 votes
Mark Markov
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
October 15, 2018

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)
}

 

Suggest an answer

Log in or Sign up to answer