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

Dis[lay transition based on Selecting from custom fields on screen

Garden16_ December 19, 2022

 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. Ready to build hot fix missing.PNG

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'] =='Hot Fix' && cfValues['Test Environments']== 'QA2'

1 answer

Suggest an answer

Log in or Sign up to answer
0 votes
Peter-Dave Sheehan
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
December 19, 2022

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'}

AUG Leaders

Atlassian Community Events