Hi,
We have two projects like project A and project B. The Project A issues are linked with the project B issues with different issue types. We need only story issue type issues in project A.
How to write JQL for this?
Hi @Raghavarapu
Welcome to the Atlassian Community!!
Sorry to say but you cannot achieve the desired search using standard features on Jira,
you need go for a third-party app instead.
This are third party app that can help you to achieve the your desired result.
Find issues in one project linked to another project , i.e.:
project = "My Project" AND issue IN linkedIssuesOf
(' project = "Other Project" ')
Note that this is just an example, you must tune your query to fit your needs
Using this app:
you can also query other issues relations, check:
References:
Hope this helps you to create awesome JQL.
Regards,
Mayur
Hi ya! This is Jack from SweetBananas,
Thanks for the kind shoutout! <3
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Raghavarapu Use JQL functions from ScriptRunner that are used for searching for linked issues. Check in the ScriptRunner documentation onlin
Some of them might be (if I remember correctly): hasLinks(), linkedIssues(), etc.
The way to use these JQL functions from ScriptRunner in a JQL query is as below as an example:
project = "your-project" AND issuetype = "Story" AND issueFunction in linkedIssues("your-arguments-for-this-JQL-function")
The JQL query needs to be created in Issue Navigator screen which is accessible using "Search for Issues" link from the Issues menu in Top Navigation menu (Note: the way to access Issue Navigator screen might be different for Server/DC and Cloud editions of Jira)
Hope this helps!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Raghavarapu
Welcome to the community.
This is not possible OOTB, you'll need an addon like scriptrunner to achieve this.
https://scriptrunner.adaptavist.com/latest/jira/jql-functions.html
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.
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.