• Community
  • Products
  • Jira Software
  • 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?

Debashis Phukon December 24, 2015
 

2 answers

0 votes
Rafael Franco
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 Leaders.
December 27, 2015

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

0 votes
Vasiliy Zverev
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 Leaders.
December 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
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 Leaders.
December 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;

Suggest an answer

Log in or Sign up to answer