How to find issues with specific sub-task type

Scott Federman December 26, 2018

Hi All, 

 

I have an issue type "Initiative" which has multiple sub-task types, one of which is "blocker". What JQL would i use to identify all initiatives containing blockers?

2 answers

0 votes
Ricardo Araya May 17, 2022

Hi, in case someone is looking for this functionality.
You need scriptrunner to have this enhanced JQL function:
"issueFunction in subtasksOf"
The JQL would be as follows:

issueFunction in subtasksOf("issuetype = Initiative") and issuetype = "Blocker"

That will return all the subtasks type "Blocker" of all of the Initiatives.

cheers,
Ricardo

0 votes
Adrián Plaza [DEISER]
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.
December 26, 2018

Hi @Scott Federman,


What do you mean with "Sub-task" are you using links https://confluence.atlassian.com/jiracoreserver073/linking-issues-861257339.html, or are you using real sub-task?

 

Adrián.

Scott Federman December 26, 2018

hey @Adrián Plaza [DEISER]

Blocker is a sub-task issue type. I have it so that the workflow automatically generates these blocker sub-tasks using the blocked by link type.  

Vimal December 26, 2018

Hi,

If it is just a subtask then 

Project = "Project name" and issuetype = Blocker

You can get the related linked issues for a particular issue only

issue in linkedIssues(ABC-1)

If you need blocked by issues then you can search as follows

issue in linkedIssues(ABC-1),"is blocked by")

 

If you need to query all linked issues then you need to go with Script Runner Plugin where you can query as issuefunctionof

Suggest an answer

Log in or Sign up to answer