JQL CONTAINS ~ operator doesn't work with 'Parent' fields

Maja Zuchowska January 8, 2025

 

JQL CONTAINS ~ operator doesn't work with 'Parent' fields. 

Use case: JQL advanced search eg. finding tasks with a certain condition under Epics containing particular name of the system etc.

Issue: JQL search does not accept ~ operator for Parent type fields (before the change to Parent, the Epic type fields could be associated with it).

 

Am I missing something, or is it a feature request?

 

2 answers

2 accepted

3 votes
Answer accepted
Fazila Ashraf
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 8, 2025

Hi @Maja Zuchowska 

Could you give a sample JQL to understand what you refer as 'Parent' type fields? Is the field Parent or fields associated with parent?

Maja Zuchowska January 8, 2025

Hi @Fazila Ashraf thanks for reaching about it. I actually refer to Parent (I know some teams are using ParentLink or Parent Name as well, but that's optional).

Maja Zuchowska January 8, 2025

Here is an example of a search I was hoping to use:

project = "CODE"

AND type IN (Task, Bug, Support, Sub-task)

AND status NOT IN (Done, Cancelled)

AND assignee = empty

AND parent ~ 'part of name'

ORDER BY created DESC

Fazila Ashraf
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 8, 2025

Unfortunately the parent field only stores the issue# and not the summary.

~ is not an operator designed to work with the field yet. See https://support.atlassian.com/jira-software-cloud/docs/jql-fields/#Parent

If you have some apps that provide additional JQLs like JQL Search Extensions for Jira or Scriptrunner , you could workaround this problem though.

Like Maja Zuchowska likes this
Maja Zuchowska January 8, 2025

Thanks @Fazila Ashraf Will check the extensions. Hopefully this can be solved within Jira basics soon.

2 votes
Answer accepted
Hannes Obweger - JXL for Jira
Atlassian Partner
January 8, 2025

Hi @Maja Zuchowska

to the best of my knowledge, the contains operator isn't available for the parent field. You'll need extra tooling for this.

E.g., if you're open to solutions from the Atlassian Marketplace, you may want to have a look at the app that my team and I are working on: JXL for Jira.

JXL is a full-fledged spreadsheet/table view for your issues that allows viewing, inline-editing, sorting, and filtering by all your issue fields, much like you’d do in e.g. Excel or Google Sheets. It also comes with a number of advanced features, including the ability to perform text filtering on all issue fields, like so:

parent-text-filtering.gif

For more advanced use cases, you can also use logical operators and even regular expressions

I should also add that JXL can do much more than the above: From support for configurable issue hierarchies, to issue grouping by any issue field(s), sum-ups, or conditional formatting.

Any questions just let me know,

Best,

Hannes

Maja Zuchowska January 8, 2025

Hi @Hannes Obweger - JXL for Jira thanks for that, looks interesting, may give it a go :)

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events