Checking if a component is in the list of issue's components

Saira
Contributor
October 16, 2022

Hello!

I need to create a workflow condition (Via scriptrunner) that allows transition only if the issue has one of the specified components. This is what I tried:

'ComponentA' in issue.components*.name || 'ComponentB' in issue.components*.name

 

Which means that if ComponentA or ComponentB is a component of the issue, allow transition.

But this does not work. What am I doing wrong? 

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events