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

Workflow Condition based on single select list value

Garden16_ October 19, 2022

I 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 (Environment= 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 

Environment: QA2

Test Phase : Hot fix

How do I use script runner to incorporate this feature on the screen? Simple scripted condition on the work flow using script runner

 

Ready to build hot fix.PNG

1 answer

1 accepted

Suggest an answer

Log in or Sign up to answer
0 votes
Answer accepted
Peter-Dave Sheehan
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.
October 19, 2022

A simple scripted condition should work for you:

cfValues['Environment'].value == 'QA2' && cfValues['Test Phase'].value == 'Hot Fix'

Regardless of the manner in which those fields might get updated, if the correct value is in place, the transition button will appear. Otherwise, there will be no button. 

Garden16_ October 19, 2022

This really helped. Thank you.

Garden16_ December 19, 2022

Ready to build hot fix missing.PNGFis defect transition.PNG

Garden16_ December 19, 2022

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'
Peter-Dave Sheehan
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.
December 19, 2022

Don't forget to add ".value" after cfValues['field name'] when the field is a single select.

TAGS
AUG Leaders

Atlassian Community Events