• Community
  • Products
  • 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

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.).

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 Join to answer
Community showcase
Teodora [Botron]
Published Thursday in Marketplace Apps

Jira Inferno: The Nine Circles of Jira Administration Hell

If you spend enough time as a Jira admin - whether you are managing a single, mid-sized instance, a large enterprise one or juggling multiple instances at once - you will eventually find yourself in ...

662 views 4 15
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot