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

Best way to compare select list values using the JMWE App using a validator

Hello,

I'm trying to find out the easiest way to create a validator that will compare the values of two select lists, single choice to ensure they don't have the same value.

I'd think something like this would work, but it doesnt work the way I'd expect it to.  I'm using JMWE for this.


issue.customfield_10619.value != issue.customfield_10620.value

 

1 comment

Hi @Daniel Burris ,

in what way does it not behave as expected?

I can see a problem in the script, if any of the two fields has no value, but is there a problem beyond that?

Try this:

issue.customfield_10619 == null && issue.customfield_10620 != null
|| issue.customfield_10619 != null && issue.customfield_10620 == null
|| issue.customfield_10619 != null && issue.customfield_10620 != null && issue.customfield_10619.value != issue.customfield_10620.value

This seemed to work. Thanks!

Comment

Log in or Sign up to comment
TAGS

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