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")
Related
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
From one day to another, changing the issue filter slightly, my Kanban board's board configuration in JIRA went empty. I use the following JQL as a filter within the board configuration:
project = "My amazing project" and fixVersion in unreleasedVersions()
ORDER BY priority DESC
The above filter does not work. What is working, though, is
project = "My amazing project" and fixVersion = "v1337"
ORDER BY priority DESC
Interestingly, the first query works in JIRA's issue explorer and gives me back the 11 results I expect. As you see in the screenshot below, I have no quick filters enabled. Neither do I have any sub-filter added, nor am I hiding any older issues. Where did all the cards go?
I am using Atlassian Jira Project Management Software (v8.2.3#802003-sha1:5986657), and I am not an administrator of that installation, only of the project.
Further reading
community.atlassian.com: Kanban board is empty
There is a dedicated problem page provided by Atlassian:
Symptoms
The issues are not visible in Kanban board, but when you are in board configurations >> columns you can see number of issues.
Cause
As Kanban board deals with version of the issues, the field named Fix Version/s should not be hidden
This is because the default Kanban board sub-filter(Board Configure >> General) has been set to
fixVersion in unreleasedVersions() OR fixVersion is EMPTY
The page also describes a rather complicated workaround. My workaround was much simpler:
Change the JQL query to project = "My amazing project" only.
Create a subfilter fixVersion in unreleasedVersions() ORDER BY priority DESC.
I do not understand why it has to be this way, but it does the job.
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.
Is there a way in JQL to find issues that were added to backlog yesterday? I tried using Sprint changed to EMPTY and Backlog priority changed from empty but JIRA doesn't support historical search on those fields.
Thanks!
JQL indeed does not support history searches on the sprint field so you cannot search for issues that were removed from a sprint since yesterday.
You can however search for "new" issues that were added to the backlog since yesterday:
project = "MyProject" AND created > -1d AND sprint IS EMPTY
Or for issues on your backlog that were updated since yesterday:
project = "MyProject" AND updated > -1d AND sprint IS EMPTY
If that's not close enough to what you need, you could also use an add-on like Script Runner which comes with a number of JQL functions built-in, like removedAfterSprintStart. It also allows you to implement your own JQL functions. That way you could implement exactly the behavior that you desire.
We are planning to move our projects (including defect databases) to TFS. I see that I can create a work item query that spans projects, but it doesn't appear that the "quick search" field supports cross-project searches. What is the best way to accomplish this? We have "light users" that just want to come in and search for certain keywords across all projects.
In the new query editor, right click on the Project clause, and select Delete Clause. Then when you run the query, you see everything. The result doesn't have the "Project" column. You can click on Column Options, and then Select "All Projects". Then select "Team Project" and push it to the right. This will show you which project the item belongs to. Hope this is helpful.
There is no way to search across projects because Web Access always limits the search to the current project when running search query on the server.
The only solution I could suggest is to use work item queries and specify the projects explicitly.