JQL to find epics that are not linked to a theme - jira

I can't find any examples of how to do this.
I want to filter all epics that are not linked to any issues of type "theme".
Is this possible?

I belive there's no JQL you can do without any add-on purchased.
If you can, try scriptrunner.
There you can do something like,
issuetype = Epic AND issueFunction not in hasLinkType("Epic-Story Link")
This gets results of all the epic issues with no issue linked expect Epic.
"issueFunction" is possible JQL only if you add ScriptRunner add-on.
Basically, in the Epic issue, "Issues In Epic", if there's no issues is in Epic, then it will be on the result.
For specific "theme" issue type, then you need to develop more with this script.

Not with JQL that I know of. I think that I would use Jira python to get the issue link information and filter out the unwanted epics

You can filter Epics with no theme with something like this: Type = Epic AND "Parent Link" is EMPTY AND resolution = Unresolved

Related

how can I find all tickets that changed/moved projects?

The query I tried is Project CHANGED FROM "Customer triage", but jira says it's not supported.
Is there a way to query the tickets that were created in project A, but were moved?
Evidently, this is not possible to do out of box with JIRA; "Project" just doesn't support any historic search functionality:
https://confluence.atlassian.com/jiracoreserver073/advanced-searching-fields-reference-861257219.html#Advancedsearchingfieldsreference-ProjectProject
However, with some Googling, it appears you may be able to accomplish this with ScriptRunner:
https://community.atlassian.com/t5/Jira-questions/View-issues-that-have-been-moved-from-one-project-to-another/qaq-p/790346

Jira: Query all stories that belong to a different project than the Epic itself

In Jira I want to query all stories that belong to a different project than the Epic itself.
For example:
My Epic is in project Y. The Epic contains 5 stories in project Y but one story in project Z.
Now I want to show on a board only the stories that belong to different projects than the epic they belong to.
The goal is to create a board that gives me an overview of dependencies on other projects than my own.
Can anyone please advise how I can accomplish this?
Try This JQL query
Project!="YourProject" and issuetype=Story and "Epic Link" in (XXX-###, YYY-###)
Advanced scearching
If you have the Adaptavist ScriptRunner plugin you can complete this: issueFunction in issuesInEpics("project = XXX" AND project not in (XXX)
This should return all cards that are from outside projects.

JQL Selecting all Epics that have no stories

I'm trying to figure out how to create a select that would bring up all empty epics (those that have no stories in them) so I could easily tell which ones need filling.
Selecting stories that have or do NOT have an epic link is easy. I can not seem to find a way to search the other way around.
This is where I am right now:
issuetype = Epic AND project = projectname AND Issues in Epic is EMPTY
The part after the last AND is what I need the code to do and can not seem to figure out.
This is not support with JQL out of the box, but there are a few add-ons that do provide support for this.
The most common one is the Script Runner add-on which comes with a number of additional JQL functions like hasLinkType, that you can use for your scenario in a query like this:
project = PROJECT and issuetype = Epic and issueFunction not in hasLinkType("Epic-Story Link")

Extract both issue and epic fields in Jira JQL

I would like to get the following data from Jira:
Issue ID, Issue Summary, FixVersion (from Epic), FixVersion (from Issue).
Any suggestions are appreciated although I would love to not use commercial plugins.
Thanks
Matej

JQL query to find a linked issue in another project

I am looking for the Jira JQL syntax to find issues that have a linked issue in another project. For example in three projects I can find the list of issues that have been resolved in the last 90 days. I would like to find a list of issues in our QA project for the original issues resolved list.
sqluser was close. You don't to have designate a single issuekey, if you use the scriptrunner addon. I don't think there is a way around having it. Up to a recent version it was free so you can simply download that version. It's a must have plugin imho. Here is your query:
issueFunction in linkedIssuesOf('resolutiondate > 2015-10-01') and project = QA
You can extend the criteria of the search. Here is the documentation.
Try this plugin:
http://www.j-tricks.com/jql-tricks-plugin.html
specifically JQL function
linkedIssuesInProject(project,[linkType])
but the plugin is not free.
You can use linkedIssues function and combine it with project name
Something like this:
issue in linkedIssues(XYZ-000) AND project = 'ABC'
I was able to get to the solution I needed with the following:
AND issueFunction in linkedIssuesOf("project in (ext_proj_1, ext_proj_2, ext_proj_3)") AND issueLinkType in ("depends on", "is blocked by")
I then used this in a dashboard where I showed the filter results and added the "Links" column so that users could see what projects we had external dependencies on.

Resources