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 do I query a sub-task for a specific issue type only?

Angela Boston Community Leader Dec 10, 2019

I would like to query the Issue Type and Sub-Tasks of that specific Issue Type only.  Is there a JQL for this?

3 answers

You need a plugin to do this either scriptrunner or  JQL Search Extensions for Jira & reports 

 

 

I have  JQL Search Extensions for Jira & reports  plugin and using it since long time., its available for both server and cloud

 

In your case 

This query will return all sub tasks of issue type epic , you can change the issue type as per your need.

 

issue in subTaskOf("issuetype=epic")

 

Angela Boston Community Leader Dec 12, 2019

Would I be able to pull in the Issue Type and the Sub Tasks of that Issue Type? 

Example, I have the Issue Type of Creative Request.  I want to pull the Creative Request tickets and the Sub-Tasks of those Creative Request tickets. 

@Angela Boston  why not just use:

issuetype="Creative Request" and issue in subTaskOf("issuetype='Creative Request'")
Angela Boston Community Leader Dec 30, 2019

I tried that and get this error message

Unable to find JQL function 'subTaskOf(issuetype='Creative Request')'.

Angela Boston Community Leader Dec 30, 2019

Can this be accomplished with ScriptRunner?

Hi Angela,

Thank you for your question.

I can confirm that the Enhanced Search for Jira Cloud plugin contains the subtasksOf() search function that you can use to query subtasks related to an issue.

The documentation page located here explains how this works in more detail and may be useful to help you to achieve your requirement.

If this response has answered your question can you please mark it as accepted so that other users can see it is correct when searching for similar answers.

Regards,

Kristian

not sure if I understood your question correctly. Are you looking for something like this 

=project = ABC AND issuetype in (Bug, Story, Task, Sub-task)

Angela Boston Community Leader Dec 12, 2019

I'm looking to return the Issue Type and Sub-Tasks of that Issue Type only. 

 

Example, the Issue Type is Creative Request.  I want to pull all Creative Requests and the Sub-Tasks of only the Creative Requests issue types.  

Suggest an answer

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

Do you use Jira Cloud with Microsoft Teams?

Hi, Jira users! Do you use Jira alongside Microsoft Teams? We want to hear how you’ve used the power of Jira Cloud and Microsoft Teams (via the Jira Cloud for Microsoft Teams app) to achieve a team...

316 views 1 5
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