Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

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?

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.  

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

Suggest an answer

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

JSM June Challenge #2: Share how your business teams became ITSM rockstars

For JSM June Challenge #2, share how your non-technical teams like HR, legal, marketing, finance, and beyond started using Jira Service Management! Tell us: Did they ask to start using it or...

168 views 6 7
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