Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,294,621
Community Members
 
Community Events
165
Community Groups

How to find issues with specific sub-task type

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

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

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.

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.  

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
TAGS

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