Forums

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

Jira Automation Rule: More than 1 component selected

Ben Robbins
Contributor
November 1, 2022

Only just getting to grips with Automation for Jira and just testing out some potential requirements we may get asked to build into an instance of Jira cloud.

Is it possible to build a rule which checks how many components are selected whenever that field is amended to ensure that only one (or possibly none) are ever selected? It would also need to check this on creation.

Many thanks
Ben

1 answer

1 accepted

1 vote
Answer accepted
Stefan Salzl
Community Champion
November 1, 2022

Hi @Ben Robbins ,

yes this is possible as the smart value of this field returns a list of its values. You can check the size with the following smart value:

{{issue.components.size}}

 

to check wheter on creation or on field value change I guess you need to create 2 different rules as those are 2 different triggers.

I hope this was helpful. In case of any further questions just let me know.

Best
Stefan

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD Trial
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events