Hi Asmath,
If you have either of the ScriptRunner for Jira Cloud or the Enhanced Search for Jira plugins installed, then the linkedIssuesOf() JQL function can help to achieve your requirement.
Regards,
Kristian
Hi @Kristian Walker _Adaptavist_ , will check in Scriptrunner also. linkedIssuesOf() function will support in Jira cloud?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Asmath,
Yes linkedIssuesOf() will work in Jira Cloud and the docs linked above are for Jira Cloud.
In Jira Cloud you write the queries on the Enhanced Search page instead of in the main Jira search bar.
Regards,
Kristian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Kristian Walker _Adaptavist_ , Can you send me the example JQL Query to achieve this using Enhanced search for Jira.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Enhanced Search is part of scriptrunner for Jira Cloud and can be accessed via the apps menu.
There is more information on this page.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Charlie Misonne , @Kristian Walker _Adaptavist_ thanks for your reply.
I need to filter the tickets like this query :
project = "TEST" AND status not in (Closed, Done) AND issueFunction in linkedIssuesOfRemote("TP-2") and status in (Resolved, Closed)
Here the Project "TEST" is from Jira cloud instance and the linked issue is from different instance (data center).
Can we get the JQL Query to filter the tickets.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Asmath Basha
You're correct that this specific query presents some challenges
AND issueFunction in linkedIssuesOfRemote("TP-2")
: It gets a bit tricky here. The linkedIssuesOfRemote
function is typically used to find issues linked to issues in a different project within the same Jira instance. It's not designed to work across separate Jira instances (Cloud and Data Center).
You're right that this exact query is not possible using Enhanced Search or standard JQL, primarily. You can't directly query issues from one Jira instance (Cloud) based on links to issues in another instance (Data Center) using standard JQL.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Asmath,
In Jira cloud, you cannot search for remote linked issues as the linkedIssuesOfRemote JQL function is not provided in the cloud version.
You can see a full list of what JQL functions from the on-premise versions are available in the cloud version on the documentation page located here.
I hope this helps.
Regards,
Kristian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Kristian Walker _Adaptavist_ , @Jorge Guerreiro @Charlie Misonne @Manoj Gangwar thanks for your clarification and the workaround done for this issue.
Thanks again
Regards,
Asmath
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
To find all the issues with linked issues in a Jira project, you can use the following JQL query:
project = "YOUR_PROJECT_KEY" AND issueLinkType IS NOT EMPTY
If you want to filter by specific link types (like "blocks," "is blocked by," "relates to"), you can include the issueLinkType
with a specific value, like:
project = "YOUR_PROJECT_KEY" AND issueLinkType = "blocks"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Manoj Gangwar thanks for your reply.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
In this scenario, I would you to to follow the suggestion provided by Charlie.
key IN (ISSUE-1, ISSUE-2, ISSUE-3, ...) AND statusCategory = Done
If there are too many linked issues to manually input then use the addons like Scriptrunner or JQL search extension.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
By that you mean all the items having any issue link in a certain project?
By default Jira does not have many JQL functions to query for linked issues.
You can do:
More on https://support.atlassian.com/jira-service-management-cloud/docs/jql-functions/#linkedissue
I usually use scriptrunner which provides this function:
project = ABC and issuefunction in haslinks()
UPDATE:
nevermind my answer. Manoj provided a better solution.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
if you're open to solutions from the Atlassian Marketplace, you may want to have a look at the app that my team and I are working on: JXL for Jira.
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. It also comes with a number of advanced features, including support for (configurable) issue hierarchies. These issue hierarchies can be based on Jira's built-in parent/child relationships (like task/sub-task, or epic/story), and/or based on issue links of configurable issue link types. Once you've set up your hierarchy, you can use JXL's various search and filtering techniques to narrow down to the issues you're interested in, like so:
There's a few things going on here - happy to elaborate if that's a direction that might be of interest to you. I should also add that issue hierarchies also play well with JXL's other advanced features, such as sum-ups, conditional formatting, or inline bulk editing via copy/paste.
Any questions just let me know,
Best,
Hannes
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Lets all merge
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.