Forums

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

Components

Hitesh
Contributor
May 2, 2023

Hello,

 

I would like to prevent creation of tickets if the following components are selected together using validators in the project workflow.

- ComponentX and ComponentY

- ComponentZ and componentA

 

Works even with the scriptrunner

Thanks.

Hitesh

1 answer

1 accepted

1 vote
Answer accepted
Fazila Ashraf
Community Champion
May 3, 2023

Hello @Hitesh 

Have not tested but scriptrunner simple script validator code like below could be used and extended

issue.components*.name.contains('ComponentX') && issue.components*.name.contains('ComponentY') 
Hitesh
Contributor
May 3, 2023

Hello @Fazila Ashraf

 

Can i get the full script 

Thanks!

Suggest an answer

Log in or Sign up to answer