Forums

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

Components

Hitesh
Contributor
May 2, 2023 edited

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 Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
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
TAGS
atlassian, atlassian government cloud, fedramp, webinar, register for webinar, atlassian cloud webinar, fedramp moderate offering, work faster with cloud

Unlocking the future with Atlassian Government Cloud ☁️

Atlassian Government Cloud has achieved FedRAMP Authorization at the Moderate level! Join our webinar to learn how you can accelerate mission success and move work forward faster in cloud, all while ensuring your critical data is secure.

Register Now
AUG Leaders

Atlassian Community Events