Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

JIRA: Searching for all issues with a given link type

Is there a way to query for all issues with a particular link type?

For example, let there be a dependency link where an issue can "depends on" another issue. Is there a query to find all issues that depend on some other issue (aka. all issues with the "depends on" link)?

I know there is the linkedIssues (key, linkType) function that returns the key of all issues that have the linkType with the issue with key. I want to find all issues with a linkType with any issue.

Thanks!

like image 756
James An Avatar asked Oct 12 '10 19:10

James An


People also ask

How do I search for dependencies in Jira?

Link > JIRA Issue > Choose issue link type 'blocks' or 'is blocked by'. Create a saved filter which cuts across all the projects you want visibility on and that it is filtering dependencies: Issues > Search for issues > Enter filter query.

What are the two ways to search for issues in Jira?

There are two types of searches in Jira: basic and advanced. Basic searches, like the ones above, present you with a set of forms that you can fill in, such as Project name, Issue Type, Status, and Assignee. Basic search can be useful for getting a high-level view of your issues and status.

How do I do a wildcard search in Jira?

Jira supports single and multiple character wildcard searches. To perform a single character wildcard search, use the " ? " symbol. To perform a multiple character wildcard search, use the " * " symbol.

Which option is used to search issues Jira?

To use the basic search: Navigate to Issues (in header) > Search for issues, then enter your search criteria. Tip: If the advanced search is shown instead of the basic search, click Basic next to the icon. The advanced search is the most powerful of the three search methods.


2 Answers

You can use Script Runner plugin - Edit: It unfortunately is no longer free. The last version before 4.0 still is, though. Details here https://www.adaptavist.com/doco/display/SFJ/Downgrade+ScriptRunner

It sports a ton of incredibly useful functions, one of these is hasLinks()

Usage example:

issueFunction in hasLinks("blocks") OR issueFunction in hasLinks("is blocked by") 
like image 126
nico gawenda Avatar answered Sep 22 '22 04:09

nico gawenda


You can hack it with Craftware JQL's linkedIssuesFromFilter, where the filter would be "all issues"

like image 26
Vladimir Alexiev Avatar answered Sep 26 '22 04:09

Vladimir Alexiev