Forums

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

Transition Condition Script Returns false but Transition is Still Available

carlos andrade
Contributor
February 25, 2024

I added a condition to a transition using the custom script condition option [ScriptRunner], but the transition is still available on the issue screen.

The script is returning faIse but the transition still shows up. What could be causing this problem?

2 answers

1 accepted

1 vote
Answer accepted
carlos andrade
Contributor
February 27, 2024

If the "Custom Script Condition" is used, the script needs to return the passesCondition to validate the transition.

1 vote
Trudy Claspill
Community Champion
February 25, 2024

Hello @carlos andrade 

Do you have more than one transition going to that status?

 

Can you show us the image for the workflow?

carlos andrade
Contributor
February 26, 2024

There is only one transition .

Thanks Trudy!

Trudy Claspill
Community Champion
February 26, 2024

Can you share with us the diagram for your workflow so that we can confirm that?

carlos andrade
Contributor
February 26, 2024

This is very strange. If instead of selecting "Custom script condition [ScriptRunner]", I select "Simple scripted condition [ScriptRunner]", the same script works as it should.

Suggest an answer

Log in or Sign up to answer