want to show a specific Transition based on the data in two additional felids.
This process is for the bug life cycle . The transition should display 'Retest hot fix' if these two (Test Environments= QA2 and Test Phase = Hot fix )are present in the custom felids on the screen (populated from previous transition ) or if they are selected using the single select option on the fix defect status screen
Test Environments: QA2 (label) and Test Phase = Hot fix.
Test Phase : Hot fix
I am unable to see the transition Ready to build transition on the screen despite adding scripted condition on the Ready to build hot fix transition
cfValues['Test Phase'] will return an instance of "Option". You need to examine the "getValue()" method of the option to compare it against a string.
cfValues['Test Environments'] will return an instance of a TreeSet of Labels. You need to account for the inherent multiple capabilities of that field. Then a label object needs to be compared against a string using the "getLabel()" method.
Try like this:
cfValues['Test Phase'].value =='Hot Fix' && cfValues['Test Environments'].any{it.label== 'QA2'}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.