Issue Details (XML | Word | Printable)

Key: JRA-1560
Type: Improvement Improvement
Status: Open Open
Priority: Major Major
Assignee: Unassigned
Reporter: Mika Ruottinen
Votes: 523
Watchers: 271
Operations

Add/Edit UI Mockup to this issue
If you were logged in you would be able to see more operations.
JIRA

Better support for logical operation (and/or/not) type of filters.

Created: 09/Apr/03 08:51 AM   Updated: Thursday 06:11 AM
Component/s: Filtering & Indexing
Affects Version/s: None
Fix Version/s: 4.0

Time Tracking:
Not Specified

Issue Links:
Blocker
 
Duplicate
Part
Reference
 

Participants: AJ, Allen Rohner, Amrita Dhillon, Andrea Pagano, Andy Armstrong, Anna Berns, Anton Mazkovoi [Atlassian], Ben Hodgkinson, Brett Adam, Brian Lane [JIRA Product Manager], Carman Okon, Charles Burrell, Chris Brookins, Chris Mountford [Atlassian], Christian Foisy, Christina Rollins, Corey Hampton, Dan Gawarecki, David Kropman, Dror Tirosh, Eric Gross, Fredrik Cronholm, Gary Barnes, Hasan Edain, Ian Daniel [Atlassian], Jaco van der Merwe, Jamie Echlin, Janine Jäger, Jeff Fry, jira@atlassian.com, Joanna Thurmann, John M. Black, John Newman, John Price, Jon Gunnip, Keith Champoux, Kelly Heese, Kevin Teague, Kevin Wilson, Le Mée, Lou Bershad, malathi, Mark Andersen, Maurizio Mancini, Mika Ruottinen, Mike Roberts, Neal Applebaum, nils boeffel, Paul Csapo, Phil Haar, pierre-yves voirol, Ray Maxwell, Ray Oei [Furore], Reid Sayre, Reinhard Brandstädter, Richmond-rae G. Dalisay, Ryan Shuya, Samuel Cai, Scott Harman, sensui, Sergiy Lizenko, smirks, Stephen Tan, Thiago Rossato, Thoralf Will, Tyler Theobald, Vishnuvardhan Reddy K, Wim Deblauwe and Z Craven
Since last comment: 8 weeks, 4 days ago
Labels:
Support reference count: 86


 Description  « Hide
It should be possible to better enhance the filters.

Usage case: Issues assigned to NN1 and NN2

Usage case: Issues not matching the version 1.x



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Jon Gunnip added a comment - 14/May/05 11:40 AM
It would be nice to know what kins of workarounds are available to support such operations (e.g. write a custom report via a plugin)

Anton Mazkovoi [Atlassian] added a comment - 17/May/05 12:45 AM
Hi Jon,

You are absolutely right: creating a custom report is an option. More information about writing a custom report can be found here:
http://confluence.atlassian.com/pages/viewpage.action?pageId=11465

This issue has been open before plugins appeared in JIRA, and unfortunately we did not add this suggestion here. Thanks for the note.

Thanks,
Anton


nils boeffel added a comment - 02/Jun/05 08:50 AM
This feature is very valuable. A 'not' checkbox before the filters would solve it, and in the cases of listboxes a 'none' option just line the 'all' option would go partway towards solving the problem. Not having this is a big hinderance, since it makes issues where a certain tag has not been filled out (say it used to be not required but is now required) difficult, and hence prevents block operations.

Kevin Wilson added a comment - 12/Oct/05 03:41 PM
Being able to search for a list of known KEYS in either the quick search or the Find Issues area is a highly requested feature.

Reinhard Brandstädter added a comment - 24/Nov/05 01:15 AM
I'd like to see this feature too. I have got a use case where a certain person wants to get a list of all issues that do not have a custom id (=testcase reference assigned). A simple "NOT" checkbox would do the trick. Although more sophisticated filters would be a really good enhancement. I think filters/search a re the most used feature in JIRA.

Lou Bershad added a comment - 13/Dec/05 07:20 PM
My request, JIRA-8781, was marked as a duplicate of this.

My request was to simply allow using the NOT operator as a unary operator in a text field. That is,
NOT 3.*
or
NOT "really a duplicate"


Fredrik Cronholm added a comment - 07/Feb/06 02:15 AM
Hi!
A simple NOT checkbox would be sufficient for us as well

smirks added a comment - 14/Feb/06 11:27 PM
Ditto on Frederik's comment... "NOT" checkbox at least as an interim step, please

For us, even just being able to query on all issues where Reported By !=<groupName> would be super (e.g. all issues not reported by Developers group).


Kevin Teague added a comment - 13/Apr/06 04:13 PM
Using JIRA 3.5.2 here and the Text Search does not seem to do any exclusion for me. i.e. The docs give the examples:

"atlassian jira" NOT "japan"

"atlassian jira" -japan

But the exclusion filter does not seem to do anything. Are the docs out-of-sync with the current features?


David Kropman added a comment - 19/Apr/06 10:15 PM
I would like the filter to also be able to handle NULL in searches. A filter were all due_date is null.

Anton Mazkovoi [Atlassian] added a comment - 27/Apr/06 06:32 PM
Kevin,

Are you trying to run the query on this instance of jira? If so, what is the issue that should not be returned in the results due to the exclusion?

Thanks,
Anton


Ryan Shuya added a comment - 01/Jun/06 01:15 PM
As mentioned above, it would be very nice to have a NOT option for versions, developers, or any type of list. Perhaps 2 lists wolud be more appropriate so we could be extremely specific...

Fix For: a list box, we select the versions we want to see in the query (as it exists currently)
Exclude Fix For: a list box - the versions chosen here would be excluded from the query.

At any rate, better support for logical operations on static fields would be nice.


Brett Adam added a comment - 19/Jun/06 12:36 PM
Please please please give me a "NOT" operator on any field in a filter - inlcuding Custom fields.

Allen Rohner added a comment - 26/Sep/06 06:24 PM
Comparisons would also be nice. "where priority is greater than normal", "where due_date < 1week" would be nice.

Stephen Tan added a comment - 29/Sep/06 11:30 AM
Having an OR condition on filters would also be helpful. In my case I have several custom user fields and would like to perform a search on all issues in which a person has been assigned a role (e.g. Assignee OR Evaluator OR Reporter = <Current User>). I could then create a dashboard portlet using this filter (e.g. similar to the 'Assigned to Me' portlet).

Neal Applebaum added a comment - 29/Sep/06 12:05 PM
Stephen - while it doesn't get you what you need, the Participants field comes close:

any issues you've commented on, raised or are the current assignee.


Phil Haar added a comment - 29/Sep/06 12:06 PM
Options such as AND, OR, NOT, NULL would all be very useful. I would even be happy with a partial implementation, where such options could only be set programmatically (such as from a custom portlet or project page). In that case, the user could only start a new filter rather than editing the "extended" one.

Would that make it easier to get a feature like this on the roadmap? I can see that a user interface to allow all of these possibilities might be almost impossible to figure out.


Reid Sayre added a comment - 29/Sep/06 12:29 PM
Actually, I would go for an "advanced" function that would let me put in the "where" portion of the SQL query and be able to save that in a filter. I have been playing with some direct queries for things that do not have a user interface. I recognize that some of those queries could get complex, so documentation would have to be beefed up.

Neal Applebaum added a comment - 29/Sep/06 12:31 PM
That's exactly what one of JIRA's competitors offers: a SQL Query like window where you build queries on the fly without having to know the database schema.

Dror Tirosh added a comment - 02/Oct/06 10:06 AM
Actually, direct SQL wll add yet another benefit, namely logical fields (that appear in query only, not in database) - but that a completely separate issue (e.g. I always wanted a column with the value of (Status+"\n"+Resolution), which saves place in the query width...))

Jeff Fry added a comment - 24/Oct/06 06:29 PM
I agree that having a way to create moderately complex sql queries as filters would be a huge benefit. I personally believe that this could be implemented in a way that takes some reading of docs and or understanding of SQL to use, since there is already a very simple interface for building simple filters.

malathi added a comment - 20/Nov/06 02:54 AM
HI

Can I have an ETA for this issue please.

Thanks.


Keith Champoux added a comment - 20/Nov/06 08:17 AM
I'd like the ability to search for all issues where MultiSelect Custom Field = null (because this custom field isn't required to have a value), but I don't have that choice. I'm basically looking for something equivalent to Fix For = "No Fix Version", Component = "No Component", and Affects Version = "No Version". It looks like the pre-made multi-select fields have a null concept for searching on, but custom fields do not.

Ben Hodgkinson added a comment - 19/Jan/07 07:22 AM
I have various selection fields like the "Fix on" and "Component" and numerous custom lists that I'd like to have the capability to set the filter for "NOT" semantics.
Right now you have to create "all but this one" filters and then have to remember to update them when you add another to the list which is a right pain.

John M. Black added a comment - 26/Feb/07 04:55 PM
(copying some of my previous comment from 12259)

Use case: A manager, team lead, etc. needs to find "all tickets that relate to a version". We'll call it Version 1.0.
This means both any ticket that was tagged as "found in version 1.0", OR any ticket that is "planned to be fixed in version 1.0" Currently this is impossible, because it requires an "OR" concept in the query (affects-version=1.0 OR fix-version=1.0)

Usability: "OR" searches are sometimes represented in other apps by the metaphor of "stacking" or "joining" searches. Ex. Create Filter A, then create Filter B, then create a filter that is the result of A and B. You could, near the top of the "new filter" UI, give a link "Create combined filter" that takes the user to a simple UI where N number of listboxes are presented each filled with the list of currently-saved filters (and of course the predefined ones too.)


Andy Armstrong added a comment - 26/Feb/07 05:06 PM
I agree with the idea of building complex filters by composing one or more simpler filters. We have approaching 50 shared filters, most of which are variations on a handful of themes. Please vote for JRA-6527 if you'd like this feature.

Anna Berns added a comment - 22/Mar/07 07:40 PM - edited
Agree that NOT/AND/OR would be very useful to us in building filters and on the fly searches for our projects.

Also really important to be able to search/filter on fields being less than or greater than a certain value (e.g. estimate > 100 hours) - not sure if this should be entered as a separate issue.


Kelly Heese added a comment - 28/Mar/07 08:08 AM
Is this on any kind of product calendar to get added in an upcoming version?

Joanna Thurmann added a comment - 17/Apr/07 01:43 PM
We would like to add my wholehearted support for this enhancement request!

Our users are extremely frustrated by the lack of ability to do logical searches and 'not operations'. For example, they would like JIRA to have additional option in drop-down menus - "Any User except..." , e.g.

1. Filter bugs reported by Any User except John Smith.
2. Filter bugs assigned to Any User except QA (group).
3. Filter bugs by QA contact Any User except John Smith or Jane Doe

Are all the options you are discussing above going to cover the above request? And yes, can you please mention when this is targetted. I would also like to see the priority increased from Minor to Major. Thanks for listening.


Ian Daniel [Atlassian] added a comment - 30/May/07 12:46 AM - edited
I received a support request - JSP-12851 - for more advanced search options, specifically around 'negative' criteria. For example, the ability to setup a filter where 'fix version' is X and 'affects version' is NOT Y.

Ideally something like the feature from Trac where you can basically write your own SQL to generate filters.

The customer has already voted for this issue, however I encouraged him to add a comment.

Cheers,
Ian


Mike Roberts added a comment - 31/May/07 04:07 PM
As requested by Ian in the previous comment, here's one from me...

Here's a scenario. We only use 'versions' for actual released versions, not every internal build. Therefore If we spot a bug on an internal build and fix it before that a later build for the same external version is released, the 'affects version' and 'fix version' is the same.

To create a change report for public release X, I want to create a filter which shows me all issues fixed in X, unless the affects version was also X. This requires a 'not' style filter attribute.


Joanna Thurmann added a comment - 31/May/07 07:33 PM
Another VERY common scenario is the ability to search for issues where status (or resolution) is NOT 'x'. Currently, you have to highlight every other value, except for 'x'. And in our installation of JIRA, this is very many.

Joanna Thurmann added a comment - 05/Jun/07 02:43 PM
Below are some examples of the type of searches we need to do in JIRA but which are not currently possible:

1. bugs where Reporter or Assignee in User X , Y or Z (without the need to put just them into a group)
2. bugs where Reporter or Assignee = Anyone except User X (i.e. Reporter or Assignee <> X)
3. same as #1 and #2 above but for custom Single User fields (i.e. ability to have OR and NOT operations)
4. bugs where (Project A and custom field value = B) OR (Project X and custom field value = Y)
5. bugs where Project A and custom field value = X or Y or Z (if custom field is a Select List or Cascading Select)
6. bugs where Project A and custom field value NOT = X (and NOT like X)
7. bugs where custom field value is NULL
8. bugs where status (or resolution) NOT = X (you have to highlight every other value, except for 'x') but it misses issues w/o a resolution


Ray Oei [Furore] added a comment - 20/Jun/07 08:39 AM
Seems to me this is a major issue, not a minor

John M. Black added a comment - 20/Jun/07 09:03 AM
What is going on here? This is the 6th most popular issue in the whole JIRA project and it's getting no attention from Atlassian, as far as I can tell.

http://jira.atlassian.com/browse/JRA?report=com.atlassian.jira.plugin.system.project:popularissues-panel

There isn't even a fix version planned. What's it gonna take?

Ray is absolutely right; this should be major.


David Kropman added a comment - 20/Jun/07 09:20 AM
I am not sure how to get the priority raised. Seems minor issues do not get addressed even though they may be the 6th most popular and the request was opened on Apr 03.

You would think that 4 years would have given them enough time to work it in to one of the releases.


Joanna Thurmann added a comment - 20/Jun/07 12:34 PM

Like the rest of you, Polycom is really eager to see this changed !! We had occassion to discuss this with Atlassian and their stance is that they hear us. They do know important this change is for the users, it's just not easy for a host of reasons. For any customers in the Bay Area, there's an Atlassian User Group mtg next Thursday , June 28th, 1-5PM at Stanford. Consider attending to get your voices heard and discuss workarounds with other customers. Here's the link:
http://confluence.atlassian.com/display/AUG/June+28%2C+2007+Atlassian+User+Group+in+San+Francisco%2C+CA+USA


AJ added a comment - 20/Jun/07 06:07 PM
Atlassian please boost this issue to the priority of major. We hope you can deliver this fix early.

Reid Sayre added a comment - 20/Jun/07 09:08 PM
I know you want to do the best solution for everyone, but that's hard and it takes a long time. Here is a suggested list of mostly independent changes that could be made that would go a long way to satisfying many of the issues linked to this one. All of these are on "find issues".
  • Give us a "not" checkbox on "Projects". The SQL query would need to be modified to specify "not in" if the box is checked.
  • Same with Issue type.
  • For reporter and assignee, allow multiple specification for both specify user and specify group. Note that it is not required to allow user and group in the same query.
  • A "not" checkbox on status resolution and priorities. Same as bullet 1.
  • Do both of these for any similar custom fields (for example, "participants" in this JRA project

Does it satisfy everyone? Nope. But it will go a long way to making our jobs easier.


Samuel Cai added a comment - 20/Jun/07 10:00 PM
Reid, can't agree you any more.
We used Devtrack before, it has powerful search function, supports "And", "OR", "Not" and parentheses.
I was thinking to enhance JIRA to have same function, but seems too hard, after thinking, I believe "Not" function can support most of our requirements, others can be done by running search multiple times.

Anton Mazkovoi [Atlassian] added a comment - 21/Jun/07 12:11 AM
Hi,

I have raised the priority to major to reflect that we do believe that it is very important. Unfortunately, it does not make it any easier to implement. A lot of complexity comes from designing an intuitive UI that will allow to make a query and validating the input. As Custom Fields in JIRA are very flexible, they do make this feature much harder to implement.

At the moment, I do not have a date of implementation for this feature, but I asure you, we are aware that this feature would be a great addition to JIRA.

Cheers,
Anton


Mark Andersen added a comment - 21/Jun/07 09:53 AM
We have custom fields of type "user". One is Tester, which we wish was a first class field.

Currently we have to create a dummy user ("... unassigned tester") so we can find tickets not assigned to a tester and assign them.

So Reid's comment is right, but lets be sure this works for all fields of type user.

I agree that if we got NOT we would be well on our way, and I think we could revisit the OR issue later which results in a significant UI redesign. (At that point, we'd want a sort of "query builder", where you would have a pane showing you the query to date, like in manage-filter's query summary, and you would have some selector which would help you operate on pieces of the query, contribute to them, move them around, and could do so in a OR or an AND context, etc. But I think that could be a follow on issue for sure.)


Brett Adam added a comment - 21/Jun/07 04:19 PM
Anton: PLEASE consider breaking this "epic" into smaller stories that can be implemented in pieces. Specifically, a simple "NOT" checkbox on a subset of the fields in the current filter builder would give a HUGE amount of value n the near term. Holding up this simple improvement while trying to come up with the "all new, all singning, all dancing feature that does everything" is the antithesis of the Agile approach and seriously undermines the ability of JIRA to deliver incremental ROI to both customers and to Atlassian.

Anton Mazkovoi [Atlassian] added a comment - 02/Jul/07 09:18 PM
Hi,

all new, all singning, all dancing feature that does everything is the antithesis of the Agile approach and seriously undermines the ability of JIRA to deliver incremental ROI

You are absolutely right, and when we attack this feature it would have to be in stages.

To be honest, some of the work on making this possible is being done. For example, in JIRA 3.5 a lot of searching code has been refactored from the Issue Navigator and into separate "searcher" objects (this work also allowed for cross project searching and issue types per project to be implemented). In JIRA 3.7 the Issue Navigator views have been refactored out of its code and into plugins. We are trying to simplify the whole search infrastructure to flexible searching possible to build.

The main issue is that there are quite a few issues that are very popular but are not straight forward to implement without compromising the stability of the product:
http://jira.atlassian.com/browse/JRA?report=com.atlassian.jira.plugin.system.project:popularissues-panel
We are working out the best way to tackle these.

Cheers,
Anton


John M. Black added a comment - 13/Sep/07 12:05 PM
How about adding the concept of "runtime variables?" One could define a variable in the individual queries that would only need to be changed once in the whole stack, like:

query 1) where Fixed-In version = var X
query 2) where Affects = var X
Stacked query: (Query 1 || Query 2), and var X = 123

If I then need to change X (which might be very frequent,) **I would only need to do it in the stacked query settings, not in both queries 1 & 2. **

In fact, it could be a runtime selection on the query result screen itself, to save the user from having to go through an Edit path to change it. So I call my query "Related to Specific Version" and run it; and the result screen has a widget to pick the version.


Ray Maxwell added a comment - 21/Nov/07 10:37 AM
I agree with most of what is being said here and need to add my two cents.

We have a custom Workflow set up that uses and "Acceptance" field after the bug is closed for the customer to accept the bug as being fixed according to the bug or reject it. When this field is created JIRA added "none" as an option in the pull down menu, along with my two values, "accept" and "not accepted" and I default to "none". This makes it so that those not given permission in the roles to use this field will not see it show up on the summary sceen of the bug. (thus avoiding confussion for those projects that do not use this feature.

The problem is the same as that mentioned above. My customers need to run a fitler to report ONLY those bugs that have none in this field so they can test and approve. And JIRA provides no way to do this. They use none in the custom field and then allow no way to search on it.

My main gripe here is that every other tool I have ever used to track bugs gives you the option to NOT a search or in some other way to get around this. JIRA does not and from the looks of the threads on this issue is REALLY dragging there feet on getting this fixed.

Excuses for not getting this emplemented do not cut it in my book. It looks like this issue has been popping up in different bugs reports for more that a year and still the only solution is a workaround.

IF NOTHING ELSE iMPLEMENT THE "NOT" FUNCTIONALITY SO THAT THOSE OF US "TRYING TO USE" JIRA CAN KEEP UPPER MANAGMENT HAPPY. AND ALLOW US TO KEEP USING AN OTHERWISE GREAT PRODUCT.


Christian Foisy added a comment - 21/Nov/07 11:34 AM
For what it is worth not having this feature was a major factor for not renewing our enterprise license. I'll start believing that Atlassian think it is important the day they'll publish a proposal and commit to a JIRA release.

Z Craven added a comment - 06/Dec/07 11:08 PM
A problem when using OR with AND:

Query: A* || B*

expected result:

apple
banana
box of chocolates

actual result:

apple
banana
box of chocolates
zebras bodyguard

--> It should not return "zebras bodyguard".


Christina Rollins added a comment - 07/Dec/07 10:11 AM
I'm actually not looking for a new feature in what I'm trying to do (though I REALLY want a NOT - even if it's just a checkbox to start with). What I really want right now is for the existing documented functionality to work. As Kevin Teague commented over a year and a half ago:

the Text Search does not seem to do any exclusion for me. i.e. The docs give the examples:

"atlassian jira" NOT "japan"

"atlassian jira" -japan

But the exclusion filter does not seem to do anything. Are the docs out-of-sync with the current features

I cannot get this to work for me either. If I could at least have this documented functionality working properly I could limp along until new features come along.


Reid Sayre added a comment - 13/Dec/07 08:09 AM
Another "not" related feature request:

We need to be able to search for issues that do not have "original estimate" specified. There is a distinction between specifying a "zero" value and not specifying any value. We need to be able to look for issues where the "original estimate" was never specified.


Thiago Rossato added a comment - 03/Jan/08 07:52 AM
Why is this feature so difficult to address? Is the GUI the problem?
If so, why don't you implement the low-level support and let the expert users to extend the filter by manipulating the XML (generated by the filter "wizard" and stored in the SEARCHREQUEST.REQCONENT field) directly via SQL commands?

Please, provide us a workaround!


Amrita Dhillon added a comment - 19/Feb/08 08:12 AM
We are definitely interested in this feature, and as many have mentioned above, it is documented that "NOT" operation works, however when we try it, it fails to return the correct query. Do you have any tentative eta as to when this functionality can be expected?

Carman Okon added a comment - 21/Feb/08 09:16 AM
This is a huge issue for use. The ability to have AND, OR, NOT, NULL in our fliters is a necessary for our business needs. Is this scheduled for 4.0?

John M. Black added a comment - 21/Feb/08 09:44 AM
Just so you're aware – my organization today started investigating Bugzilla as a JIRA replacement. This was the #1 deficiency that prompted the move.

Wim Deblauwe added a comment - 21/Feb/08 09:54 AM
I agree that this should be in JIRA. We use JIRA Client as a workaround. It has support for creating the complex filters.

Maurizio Mancini added a comment - 21/Feb/08 10:12 AM
Bugzilla as a JIRA replacement? Good luck in your comparison. There are shortcomings in JIRA but Bugzilla is not even in the same ballpark as JIRA with regards to features. Just my 2 Cents.

We moved away from Bugzilla to JIRA because of the severe limitations in Bugzilla.


Eric Gross added a comment - 29/Feb/08 04:46 PM
We use the JIRA Client as a workaround as well, but it sucks to have to have two tools, and only a few of us have coughed up the $$ for the win32 client.

btw, we also moved away from other solutions (TestTrackPro and DevTrack).


Charles Burrell added a comment - 13/Mar/08 01:57 PM
I help maintain the Jira instance for Varolii Product Development, and this I have received several requests for this capability as well. We recently moved from Bugzilla to Jira. I am sure that this very search could indeed have been accomplished using Bugzilla.

Gary Barnes added a comment - 14/Apr/08 03:09 AM
Filtering has to be one of the most disappointing things in Jira. I can't believe I can't filter on some text not being in a field. Please fix this.

jira@atlassian.com added a comment - 15/Apr/08 07:19 AM

[ http://jira.atlassian.com/browse/JRA-1560?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=109697#action_109697 ]

Gary Barnes commented on JRA-1560:
----------------------------------

Filtering has to be one of the most disappointing things in Jira. I can't believe I can't filter on some text not being in a field. Please fix this.


This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.atlassian.com/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira


Le Mée added a comment - 15/Apr/08 07:35 AM
The module "Find issues" require modifications of quite urgency.
We need to Filtering issues with NOT, OR, >, <, = " ".....

At present, this point prevents the deployment of Jira in our company.

Please fix this issue.


Jamie Echlin added a comment - 20/May/08 11:22 AM
It would be nice to have an "advanced" quick search that let's you run run lucene queries using the QueryParser, then I could just run queries such as: "+issue_assignee:(echlinj OR someother) +(projid:10000) or -issue_assignee:(echlinj) (to get everyone else's issues.

I can see that the UI for the filter build couldn't handle this at the moment, and that you have a bunch of special handlers already for quick search, hence some sort of Advanced Quick Search would be nice. And it would be nice to be able to view the raw query for existing queries (without looking at the logs), such that you can easily modify it...


John Newman added a comment - 27/May/08 03:58 PM
this really should have been in the first version...

http://almworks.com/jiraclient/screenslide.html?name=queryBuilder

looks like somebody has beat you to it! That's odd, someone else adding such important and useful features to your product while it has been sitting here for years. Look at that screen, I could build that and make it work within at most 2 - 4 weeks, why so long??


John Price added a comment - 03/Jul/08 11:33 AM
This is absolutely important to us. I get questions about it all the time. We have had to resort to giving some people JIRA database read permissions and posting some SQL snippets to our wiki. Most simple example:

We have a custom field that links to another system and is called "Helpdesk Ticket". I want to get a list of all open JIRA issues that have a value in this field, indicating that they exist in the other system.

In the meantime I did this right against the database:

SELECT ji.pkey, it.pname AS issuetype, cfv.stringvalue AS HelpdeskNumber,
ji.summary, ji.reporter, ji.assignee, ji.created, ji.updated, iss.pname AS status, r.pname AS resolution
FROM jiraissue ji
JOIN issuestatus iss ON ji.issuestatus = iss.id
JOIN resolution r ON ji.resolution = r.id
JOIN issuetype it ON ji.issuetype = it.id
JOIN customfieldvalue cfv on ji.id = cfv.issue AND cfv.customfield = 10050
ORDER BY pkey


Brett Adam added a comment - 03/Jul/08 02:16 PM
John

You are not alone in your approach. We've ended up writing scores of
scripts here at rPath for reporting. Many of them drive automated wiki
page creation as a report output format while others feed XML to a
suite of Flex apps.

While some of this is acceptable given the complexity of the report/
presentation we wanted, others should have been handled entirely
within jira ...if we could have expressed the query.

Sent from my iPhone

On Jul 3, 2008, at 12:35, "John Price (JIRA)" <jira@atlassian.com>


Sergiy Lizenko added a comment - 04/Jul/08 12:40 PM
See issue JRA-15196.
Portlet works wrong because of lack of said functionality.

Dan Gawarecki added a comment - 18/Aug/08 12:45 PM - edited
In our pilot project of JIRA, the need for powerful searching as documented by this issue record became the top concern, enough so that it could sink the pilot. Need a date when this will get fixed!

By the way, we are using Serena's "PVCS Tracker" and have been for a decade or more. This tool had boolen based searching from day 1 of the tool, so I cannot understand the lack of this feature in JIRA. One could even introduce more complexity by the use of parenthese.

Please fix this as soon as possible!


Tyler Theobald added a comment - 02/Sep/08 02:02 PM
Voted for this issue - Our needs are simple, yet unsupported I can tell. We just want our filters to show all issues with bla bla criteria that are ANY status except closed. As it stands now, when we add new statuses, I have to go update our public/private filters to include those new statuses.

I just want to be able to select (not) Closed status and I'd be done forever.

Thanks!


Chris Brookins added a comment - 07/Oct/08 08:56 PM
Hallelujah! I see that today this feature was finally scheduled for v4.0 today. Now the question is when will 4.0 be shipped! This has to be the most significant new feature in Jira since 1.0. I was really nervous about recommending Jira in my new company after living w/o this feature in my last company.

Please be sure to to allow nested And / Or and Not queries so that I can do things like ((A or B) AND (C or D)) OR E - if you do this without nesting the Boolean logic, we will just be back to square 1. Lets get this right in 4.0.


Chris Mountford [Atlassian] added a comment - 08/Oct/08 09:17 PM
Hi Chris,

We definitely intend to get this right. I'm afraid I can't give you a ship date for 4.0 at this stage, however I can assure you we are very excited to be working on this popular feature.

Regards,

Chris Mountford


John M. Black added a comment - 09/Oct/08 09:13 AM
Yes! I agree with Chris, this should be a design where the user can take very simple queries and "layer" or "stack" or "nest" them. It should be infinitely extendable, limited only by processing power. Please, please, please, do NOT go in the direction of making *one* single query interface that is even more complicated than the current one. It should be a simple/repeatable action: query && (query || query) ... etc....

Chris Brookins added a comment - 09/Oct/08 09:22 AM - edited
Thanks John for the support, but I'm wary that we should force the user to nest queries in order to do basic boolean logic. e.g. Rally has a nice simple single screen UI for setting up complex queries with all of the boolean logic you could dream of. I'd be bummed if Jira 4 forced people to create multiple queries (and deal with many screens) just to that.

Samuel Cai added a comment - 10/Oct/08 01:15 AM
For UI design, I used one issue tracking tool called Devtrack before, it has great logical operation support, you may take a look.

pierre-yves voirol added a comment - 10/Oct/08 03:35 AM
Great news !

Another source of inspiration could be www.blist.com. Try a look and play with "Lenses" (queries). They have found a quite easily way of displaying (and creating) queries (especially when using AND, OR....).


Brian Lane [JIRA Product Manager] added a comment - 13/Oct/08 01:14 AM
Hello,

As mentioned earlier - we are really happy to be able to bring this functionality into the product.

The approach we are taking to solve all the scenarios described within this issue is to produce a JIRA query language. This will allow for a large amount of flexibility to meet your needs without an complex UI getting in the way.

I will share more details in the future with everyone - ship dates, query syntax, sample queries, are still being discussed.

Cheers.

Brian Lane
JIRA Product Manger


Chris Brookins added a comment - 13/Oct/08 09:01 AM
I sincerely hope there will be a GUI to wrap the query language - none of our users (programmers or executives) will be want to remember a query syntax as well as field names and valid search criteria. I know you will share more information later, but a properly design GUI will not get in the way - rather it will enabled customers to use it without being programmers.

John M. Black added a comment - 17/Oct/08 03:10 PM
I noticed while this is slated for 4.0, JRA-6527 is not – yet they are either related or even duplicate. (However there are some comments/suggestions in JRA-6527 that might not be reflected here.)

Thoralf Will added a comment - 28/Oct/08 05:46 AM
I very much second that.
It would be helpful to have the full power of regular expression here. I had several issues where I was searching for workarounds because I couldn't state a simple search pattern because it's not supported.

Andrea Pagano added a comment - 03/Nov/08 04:14 AM
Would it be also possible to ad a filter capabilities for issues with a remaining estimate >0?
more in general would it be possible to filter for all issue fields?
thanks,

Richmond-rae G. Dalisay added a comment - 10/Dec/08 05:21 AM
Salutations,

Same comments with the others.
Just voted for this improvement.

Thanks and God bless.


Vishnuvardhan Reddy K added a comment - 12/Jan/09 01:36 AM
Searchin on assignee should get more powerful search features.......This feature is veerymuch required. When some modules are assigned to various users it should be possible to get all the modules with single filter to better track the module development, for ex.. There are many requirements like this... It becomes tedious when only one issue can be searched per filter.

Best Regards,
Vishnu


Paul Csapo added a comment - 04/Feb/09 11:47 AM
Hi, being able to search where a "custom field value" is "NULL" is great.

Am not sure if that would be context based, or screen/field configuration based, but if this has a risk to put lots of strain on the system, then how about having a "toggle" switch, for the jira-administrators to click (in real time).

Eg, if we add a new field to a form, and wish to now populate that field in previous issues, we might want to search for issues matching a particular criteria, where that field is null.

We could simply go in as administrator, enable the NULL searching feature (similarly to the API toggle link), run the NULL search and turn it off again.

regards,
Paul


Jaco van der Merwe added a comment - 05/Feb/09 02:52 AM
I vote for this feature too. An important feature for us is a GROUP BY function in conjunction with SORT ON. For example, we would like to say find all issues based on some query, sort on the priority, and group by component. Then you get a list back grouped by each different component, and within each component group the issues are sorted on their priorities.

sensui added a comment - 25/Feb/09 01:50 AM
I voted too.
for example(V3.13):
there are issues summary(5 issues)
-----------
test1 ok
test2 ok
test3 ng
pickme
yes
------------
when I input test in "Text Search" of "FIND ISSUE", it works(find first 3 issues).
input test NOT "ok" or test -"ok", it works too(find the third issue).
but when I input NOT "ok" or -"ok"_, it returns no results.
I notice that help says "The NOT operator cannot be used with just one term." but i need set conditions to search both the 4th and 5th issue.

Janine Jäger added a comment - 25/Mar/09 03:05 AM
I voted for the issue ,too.
I would like to get a report that shows me e.g. all issues that are assigned to me but where I am not the reporter.
Thanks, Janine

Scott Harman added a comment - 27/Mar/09 04:02 AM
I'd like the ability to search on a "set"field - i.e. the field has any value at all for a customers field
i.e. all issues reported by ANY customers

Hasan Edain added a comment - 27/Mar/09 06:19 PM
So I am not sure that my scenario is well covered by the existing discussion, I want to be able to do set operations on results of filters.

So if filter A results in issues (1,2,3,4) and filter B results in issues (3,4,5,6) and filter C results in issues (2,4,7,8)
I would like to be able to do the following operations:

Union A,B,C = (1,2,3,4,5,6,7,8)
Intersection A,B,C = (4)
Union A,B Exclude C = (1,2,3,5,6)

This would allow me to build very disparate queries and build sophisticated reports from them.

Why is this useful? We have very heavy reporting requirements for our product. For every issue we DO NOT implement, we need to show that we have a justification for that decision.
So what is the set of unfixed bugs for version X?

All Issues that have never been resolved, and effect Version X
PLUS
All Issues that have been resolved, but for version X+

In addition we have a set of issues that are scheduled for fix in this version, but are not yet resolved, so I would like to take those out of the list.


Neal Applebaum added a comment - 27/Mar/09 07:07 PM
Hasan,

It looks like Atlassian is making a major overhaul of the querying ability in version 4.0, You may also be interested in JRA-6527


Corey Hampton added a comment - 05/May/09 08:01 AM
We struggle with the reporting ability in Jira. There is so much information stored in Jira that we would like to report on, but it's not possible with the filters.

One group created their own reporting useing Putty and another group is using Crystal Reports. Jira is a company wide tool and it doesn't make sense for each group to use thier own method of reporting. Reports can't be shared across groups because they can't be easily ran in Jira.

Crystal Reports is the closest we've used to a good reporting tool for Jira, but you must understand all of the database tables and SQL. This is not in the 'normal' skillset of a Jira user.

A UI for more complex reporting is absolutely necessary for Jira. I wouldn't try to make the UI simple and ignore the need for complex reporting. Jira is a complex tool and in order to report on all data the UI will need to be sophisticated.

It would be helpful to include some sample reports that can be used as a guide for the users who will be creating reports. Anyway, I can't wait to have a better/easier way of reporting on Jira data.