The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

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!