It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Issue query filter out link types

James Brown Feb 22, 2018

I would like to perform a JIRA query i.e. project = ABC. One of the columns displayed would be Linked Issues. I would like to return all issues with a link type of blocks using the Script Runner Script function hasLinkTypes. However, I would link the Linked Issues field to only display links to issues that have link type of blocks and not other link types. This is used for traceability and I do not want to show issue links that are not relevant.

1 answer

0 votes
Andrew Heinzer Atlassian Team Feb 23, 2018

I think what you want here is the Scriptrunner JQL function called linkedIssueOf.  With this query I believe it can limit the results of what you want here.  I think the syntax would look something like this:

issueFunction in linkedIssuesOf("project=ABC", "blocks")

With this query, you are only returning the issues that have a 'blocks' link to issues in the ABC project.

James Brown Feb 26, 2018

While the query returns issues containing issues that contain blocks issue links, all links regardless of link type will be displayed in the linked issues field/column.

I need the ability to filter out any links that are not blocks from the linked issues column.

If there is one issue and it contains two link issues. One issue blocks and one issue relates, I want the links field to display only the link to the issue that block and not the issue that relates.

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published in Marketplace Apps & Integrations

Webinar alert! An IT Admin's Guide to Securing Collaboration at Scale

Hello, Atlassian Community! My name is Dave Meyer and I'm a Principal Product Manager at Atlassian. I wanted to give this community a heads up about an upcoming Webinar that might be of interest...

162 views 2 7
Read article

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