Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

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,552,093
Community Members
 
Community Events
184
Community Groups

Issue query filter out link types

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
Andy Heinzer
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
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.

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
TAGS
AUG Leaders

Atlassian Community Events