• 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 54m ago in Jira Software

How large do you think Jira Software can grow?

Hi Atlassian Community! My name is Shana, and I’m on the Jira Software team. One of the many reasons this Community exists is to connect you to others on similar product journeys or with comparabl...

41 views 3 3
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