Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How can I filter on parent item type?

How can I filter on parent item type?

In our system we have DEV sub-tasks under Support Tickets and DEV sub-tasks under stories.

So I want to write the following:

   WHERE ParentType IN ("Support Ticket")

but I don't think I can.

Or can I?

3 answers

Hi Wayne, sadly this cannoy be achieved using native functionality. You need to go for a third-party instead. Using i.e. JQL Booster Pack you can type the following:

 

Search for subtasks created under Stories or Support Tickets:

issue IN subtasksOf("type IN (Story, 'Support Tickets')")

 

Search for Support Tickets with Subtasks

type = "Support Tickets" AND issue IN hasSubtasks()

 

Serch for closed subtasks created under 'In Progress' Stories:

status = Closed AND issue IN subtasksOf("type = Story AND status = 'In Progress'")

 

Serch for Stories or Support Tickets with unresolved subtasks:

type IN (Story, "Support Ticket") AND issue IN parentsOf("resolution IS EMPTY")

 

References:

 

Don't hesitate to ask for help if you need to create complex queries,

Regards

You can achieve this using third party plugins like scriptrunner or  JQL Search Extensions for Jira & reports.

 

I am using  JQL Search Extensions for Jira & reports. and following query can help you 

issue in subtaskOf("issueType = 'Support Ticket'")

 

Reference:

https://jqlsearchextensions.atlassian.net/wiki/spaces/SEARCH/pages/30497099/JQL+Reference+Server#JQLReference(Server)-ParentOf(jql-query)

0 votes

Hello @Wayne Erfling 

It's not possible out of the box. But with an addon like scriptrunner you can achieve that. There is a jql function parentOf.

I think this feature can fit your requirement. Or you can also use subtaskOf (from scriptrunner too)

 

Hope this helps.

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Jira Software

How to create Jira issus from Excel file?

When to use CSV importer When managing your processes in Jira, there are many occasions where you need to create a lot of tasks. Creating them one by one will cost you a lot of time and effort and i...

4,430 views 22 32
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you