• 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

This widget could not be displayed.
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;

This widget could not be displayed.

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
Community showcase
Posted Tuesday in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

301 views 1 4
Join discussion

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