Transition Condition Script Returns false but Transition is Still Available

carlos andrade 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

0 votes
Answer accepted
carlos andrade 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 Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
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 February 26, 2024

There is only one transition .

Thanks Trudy!

Trudy Claspill
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 26, 2024

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

carlos andrade 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