Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to create a filter to search for sub-tasks with specific sub-task labels?

Anitha Gollapudi September 3, 2020

I am trying to retrieve sub-tasks with specific labels that are added to sub-task. I am only getting parent (story) labels but not sub-task labels. I want the filter to display story, its sub-tasks and labels (sub-task labels and not story labels)

2 answers

2 accepted

0 votes
Answer accepted
Sudarshan
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.
September 3, 2020

Hello Welcome, :) 
Try this JQL, (if I have understood your question)

project=<project name> and issuetype=Sub-task and labels =<your specific label name>

This should give you all the sub-task with the specific label.!

Anitha Gollapudi September 3, 2020

Hi Sudharshan,

I appreciate your response!!! 

I tried that option, but that is not my desired output. Basically I want to display epic number (if possible),  story number, sub tasks, labels within. With the above result, key is sub-task number and summary has story number along with description but unable to just filter with story number.

0 votes
Answer accepted
Jack Brickey
Community Champion
September 3, 2020

so you can find sub-tasks with specific labels via the following JQL...

type = sub-task and labels in (a, b, c)

however, if you are asking to see something like below...

(type = story and sub-task is not empty and subtasklabel in (a,b,c)) or (type = sub-task and labels in (a, b, c))

then you can't do that OOTB. You need something like Scriptrunner and leverage the functions like parentsof() and subtasksof().

Anitha Gollapudi September 3, 2020

Hi Jack,

Thank you for your response.

I tried subtasklabel, but I'm getting an error message "Field 'subtasklabel' does not exist or you do not have permission to view it."

Jack Brickey
Community Champion
September 3, 2020

ha! sorry, no "subtasklabel" was simply a made up word/function to illustrate what I thought you might be asking for. :-)

in other words if that mythical JQL that I typed reflects your goal then you cannot achieve it OOTB.

Jack Brickey
Community Champion
September 3, 2020

BTW...I recommend not "Accepting" answers unless it actually in fact answers your question. Of course the answer can be accepted even if it isn't the answer you had hoped form ;-)

Like Sudarshan likes this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events