Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Can't hide a cascading fields based of "customer request type" value

def mom_var= getFieldById("customfield_10109").getValue()

if( (mom_var =="it/634ed4a7-315d-4d41-80f1-9f3bf5657791,11100,11405,true"))
{
getFieldByName("Operatin System").setHidden(false)
getFieldByName("Operatin System").setRequired(true)
   
}
else
{
getFieldByName("Operatin System").setHidden(true)
getFieldByName("Operatin System").setRequired(false)    
}

 

 

I had try this with "getfieldByID" but it doesn't work either.

1 answer

Hey @ebrahim rezaian 

You have mentioned Jira Cloud, and this piece of code you are trying to add in Behaviors ? 

is this if( (mom_var =="it/634ed4a7-315d-4d41-80f1-9f3bf5657791,11100,11405,true")) all one value you are trying to compare or multiple values ?

Regards,

Vishwas

yes
it is the only value
it works with other type of fields except cascading fields.

and I'm sorry 
I'm working on jira server 
@Vishwas N M 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Site Admin
TAGS
Community showcase
Published in Jira Software

👋 Looking for 15-20 volunteers to test Atlassian training content

Hi everyone! Are you interested in beta testing Atlassian University’s newest (unreleased!) training course? We’re looking for 15-20 volunteers to test our newest training course, Basic reporting...

595 views 21 25
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you