• Community
  • Products
  • Jira
  • Jira Core
  • Questions
  • I am trying to filter out the line items containing "Registration" word under Components column using "~" operator, but it showing some error. Is there any way to get the output?

I am trying to filter out the line items containing "Registration" word under Components column using "~" operator, but it showing some error. Is there any way to get the output?

 

2 answers

0 vote
Vasiliy Zverev Community Champion Dec 24, 2015

Operator "~" is not supported for components: https://confluence.atlassian.com/jira/advanced-searching-179442050.html#AdvancedSearching-Component

How it could done:

 

  1. Use JQL  component is not EMPTY" to get all issues with components. Export into to Excel and filter requred issues
  2. Create a Scripted field with a string of all components, e.g. via SrciptRunner, and use operator "~" on this field (could provide code exsaple if it will be requared.).
Vasiliy Zverev Community Champion Dec 24, 2015

Here is a code example for scripted field: import com.atlassian.jira.bc.project.component.ProjectComponent import com.atlassian.jira.issue.Issue String allComponents = ""; for(ProjectComponent component: issue.getComponentObjects()){ allComponents += component.getName() + " ," } //delete last "," allComponents = allComponents.substring(0, allComponents.length() - 2); return allComponents;

Hi Debashis, Is this error you're seeing present in the Community Forums plugin? Can you post a screenshot of it? Thanks, Rafael

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Thursday in Jira

5 ways you can make the most of Jira Software and Bitbucket Cloud

As part of the Bitbucket product team I'm always interested in better understanding what kind of impact the use of our tools have on the way you work. In a recent study we conducted of software devel...

78 views 0 5
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you