Missed Team ’24? Catch up on announcements here.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Wanted to hide field based on select list

larry kam
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 13, 2022

 

Hi All,

 

I'm new here and just starting to write behaviours scripts.

I'm trying to hide the fields based on select list but its only working properly.

Only one select list working and couldn't pick up an error.

Def currentField = getFieldbyId(getFieldChanged())

def selectedoption = currentField.getValue() as String

def isCIselected = selectedOption == "CI"

def isInvestmentgroup = selectedOption == "Investmentgroup"

def isIntel = selectedOption == "Intel"

//Hide Fields

rationale.SetHidden(isCISelected)

rationale.SetHidden(isInvestmentgroupSelected)

rationale.SetHidden(isIntelSelected)

Can anyone help please.

 

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events