Forums

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

Having input in only one field out of three at the creation screen validator script

Lorena Villafruela July 28, 2022

Hi, 

I need the reporter of an issue to input only in ONE out of 3 fields. 

That will mean that one of those three fields must be filled. 

Can someone help me with the script?

 

Thanks 

2 answers

1 vote
Alexander Bondarev
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.
July 28, 2022

Hi, @Lorena Villafruela !

Welcome to the Community! 

What apps do you use to scripting? Is it groovy or SIL script?

Lorena Villafruela July 28, 2022

groovy

I put this script but it not working. I cant create the ticket in this case

Can you please help?

Thanks 

cfValues['Custom field 1']?.value !=null 'OR' cfValues['Custom field 2']?.value != null 'OR' cfValues['Custom field 3']?.value != null

0 votes
Gabriela Costa {Appfire}
Contributor
July 28, 2022

Try to use a Validator (Behavior). I believe you need to use an app to achieve the same.

Lorena Villafruela July 28, 2022

thanks Gabriela

I was using a validator, but i need only one of the fields to be filled. I cant have the 3 of them filled

Suggest an answer

Log in or Sign up to answer