JQL filter for Jira issues and its blocked issues
Asked by Eamyr Frost:

Hello,

I have succeeded in showing Issues that blocks Issues in the JQL filter and am trying to add a column for the list of its blocked issues but the closes i could get is the "Links" column. Unfortunately, this column shows all of its linked issues (blocking, is blocked by, etc.)

For example:

I have 4 Stories

HR-2: Story - Cat  
HR-3: Story - Dog  
HR-4: Story - Bird  
HR-5: Story - Mouse  

Story - Bird and Story - Mouse is **blocking** Story Dog (HR-3)  
Story - Cat is **blocking** Story Mouse (HR-5)

![Stories.PNG](/t5/image/serverpage/image-id/295766i3949F2A9FF7D2EC6/image-size/large?v=v2&px=999 "Stories.PNG")

You may have noticed in the picture that in the Links column, it also included HR-2: Story Cat which is not a blocked issue but rather a blocking issue. I do understand that it is the defined behaviour of the Links column but is there a way to show a blocking issue and only its blocked issue in the JQL filter view or a Jira Dashboard?

Thank you!


Answers:
author: Hannes Obweger - JXL for Jira
body: Hi [@Eamyr Frost](/t5/user/viewprofilepage/user-id/5381450),

welcome to the community!

I don't think that this is natively possible in Jira; all I could think of is to use [Jira Automation](https://www.atlassian.com/software/jira/features/automation) to write the relevant issue links into a separate text field, and then view this separate text field.

This being said, if you're open to solutions from the Atlassian Marketplace, you'll find options there. E.g., your use case would be easy to solve using the app that my team and I are working on, [JXL for Jira](https://marketplace.atlassian.com/apps/1224710?hosting=cloud&tab=overview&utm_source=atlassian-community&utm_medium=referral&utm_content=2554062).

JXL is a full-fledged spreadsheet/table view for your issues that allows viewing, inline-editing, sorting, and filtering by all your issue fields much like you'd do in e.g. Excel or Google Sheets. In many cases, you can configure how exactly these fields should be displayed - and for issue links, you can chose the exact issue link types you want to see. This is how it looks in action:

![issue-links-cell-content.gif](https://community.atlassian.com/t5/image/serverpage/image-id/295819iE229266DD3D64BEE/image-size/large?v=v2&px=999 "issue-links-cell-content.gif")

As you can see above, you can easily sort and filter by the blocked issues, and also use them across JXL's advanced features, such as support for (configurable) *issue hierarchies* , *issue grouping* by any issue field(s), *sum-ups* , or *conditional formatting*.

Any questions just let me know,

Best,

Hannes


author: Marc - Devoteam
body: Hi [@Eamyr Frost](/t5/user/viewprofilepage/user-id/5381450)

Welcome to the community.

This is expected behaviour. The issue HR-5 has a linked issue with link type blocking.

So the issue HR-5 is listed in the results, showing the column Links, will show all linked issues to HR-5.

Even if one or more of the issues doesn't comply to the JQL. If one of the issues does, all linked issues are shown.

The issuelinktype JQL uses in- and outbound linkType of the issue link type.

See: https://\<your-domain\>.atlassian.net/secure/admin/ViewLinkTypes!default.jspa

You can use JQL option -\> linkType, this will allow you to specify the in- or outbound option of the iss

sue linkt type.

comments: author: Eamyr Frost
body: Thanks Marc! I did change the Outward description of "blocks" to "blocking" and used it in the JQL above.  

What i asked is if it is possible to show a blocking issue and **only** its blocked issue in the JQL filter view or a Jira Dashboard.

Thanks!


author: Marc - Devoteam
body: Hi [@Eamyr Frost](/t5/user/viewprofilepage/user-id/5381450)

No this can't be done without a marketplace app, as you are no able to filter out values from the field "Links"

The link field provides the linked issues related to the found issues via JQL statements.

If any of the linked issues match the field will still show all linked issues.


Tags: cloud

jira-service-management

jira-service-management-cloud