Forums

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

How do I get the value of a Cascading selected list in a Script Runner Behavoir

Marcela Junyent
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 Leaders.
April 13, 2020

I need to check the the value of a Cascading selected list in a Script Runner Behavoir to set a date. 

I can't find the proper method:

 


def dueDateField3 = getFieldByName("Fecha Evento")
def riskLevel = getFieldByName("Cascading List Custom fieldd").getValue()

def dateToSet


if (riskLevel == "Acceso Liberado") {
dateToSet = new Date().plus(3)
} else if (riskLevel == "Seguridad Locativa") {
dateToSet = new Date() + 30
}else if (riskLevel != "1") {
dateToSet = new Date()+ 2
}

dueDateField3.setFormValue(dateToSet.format("dd/MMM/yy hh:mm a"))

 

How do I do it?

0 answers

Suggest an answer

Log in or Sign up to answer