Forums

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

Restrict Single Component Selection in a Workflow State – Jira Cloud

Mangali Chandrashekar
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
March 28, 2026

Hi all,

I want to allow only one component to be selected in a particular workflow state in Jira Cloud.

Have you used automation or other workarounds in your projects to achieve this?

Would love to hear your approaches and examples.

Thanks in advance!

1 answer

1 accepted

0 votes
Answer accepted
Mangali Chandrashekar
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
March 28, 2026

Hi All,

Answering my own question here. I just tried an automation rule to restrict only one component in a workflow state, and it worked! 

If you’re interested, I can share a screenshot of the rule and how it’s configured.

Let me know!

John Funk
Community Champion
March 28, 2026

Yes, please share a screenshot because automation rules do not restrict what is visible to a user while on a a work item in Jira. 

Like Mangali Chandrashekar likes this
Mangali Chandrashekar
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
March 28, 2026

Hi @John Funk You’re right - on the UI, it doesn’t prevent users from selecting multiple component values. However, once the work item is updated, the automation removes any additional values and keeps only the first one. Here is the simple automation I configured and tested. Its working as expected.Screenshot 2026-03-28.png

John Funk
Community Champion
March 28, 2026

So what is the {{issue.components.first}} smart value doing exactly? 

Mangali Chandrashekar
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
March 28, 2026

 @John Funk That smart value returns only the first component assigned to an issue.

John Funk
Community Champion
March 28, 2026

What if it isn't the component you want to keep? Let's say you want to only allow Component ABC, but Component 123 gets entered first, and then Component ABC. The rule will not work as you intend. 

Mangali Chandrashekar
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
March 28, 2026

@John Funk No, The condition I am checking that rule works only if component size greater than 1

John Funk
Community Champion
March 28, 2026

Yes, but what I just described in my previous post would return a size of 2, thus meeting the Condition. But it would keep Component 123, when your desire is to have it set to Component ABC. The Condition will not prevent that. 

Also, by using the Condition you are not achieving what you want if the only Component is Component 123 - the Condition would fail and leave that value in place when you really want Component ABC. 

Mangali Chandrashekar
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
March 28, 2026

@John Funk  My intention is for the work item form to have only one component value. For example, if I selected Backend yesterday and someone adds other components today, the rule should retain only the previously assigned component. To change the component, I must remove the existing value first and then add the new one.

 

John Funk
Community Champion
March 28, 2026

So you just want it to have one and only component, and you don't care which one it is. I misunderstood that you wanted a particular component to be selected. Thanks for the clarification. 

Like Mangali Chandrashekar likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events