How can I query out issues that have blockers and also potentially the issues that are linked as a blocker?
thank you
Hi
You cannot do it with JIRA vanilla, you are limited to only query issue linked to a specific issue using linkedIssues().
https://confluence.atlassian.com/jirasoftwareserver/advanced-searching-functions-reference-939938746.html#Advancedsearchingfunctionsreference-linkedIssueslinkedIssues()
But you can do it with 3rd party app such as Scriptrunner.
https://scriptrunner.adaptavist.com/latest/jira/jql-functions.html#_linkedissuesof
I'm not familliar with JQL Trciks but this app may also do what you want.
https://www.j-tricks.com/jqlt-links-functions.html
But this is all JQL-I'm looking for SQL.
This SQL should works or close to
select CONCAT(projectsource.pkey,'-',source.issuenum) as IssueSource, issuelinktype.OUTWARD ,CONCAT(projectdestination.pkey,'-',destination.issuenum) as IssueDestination from issuelinkleft join issuelinktype on issuelink.id = issuelinktype.idleft join jiraissue destination on issuelink.destination = destination.idleft join jiraissue source on issuelink.source = source.idleft join project projectdestination on projectdestination.id = destination.projectleft join project projectsource on projectsource.id = source.projectwhere linkname = 'Blocks'
It looks like you're new here. Sign in or register to get started.