I'd like to create a filter that will display any issues containing custom field "ID", and group the issues together if the value for "ID" is the same.
There are 3 issues, each a different issue type, all containing value "LSPP-295" for field "ID".
The only JQL I've tried that doesn't produce a syntax error is "ID = "LSPP-295", but it yields only one issue, not all 3. I can open the other 2 issues using sub-task or related links contained in each issue.
If it matters, "ID" appears in the context section of each issue.
Questions I have:
1) Why don't all 3 issues display for the Search?
2) If the JQL can be modified to display all 3, can it also be modified to display all issues if they contain field "ID" and the field is not empty?
What type of project are these issues in; Team Managed or Company Managed?
Are the issues all in the same project or different projects?
What type of field is "ID"?
The projects are Company Managed.
In this filter, the issues are in the same project.
"ID" is a Text field (single line).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Searches based on text fields are are different than other fields. Details about how to specify filters for text fields can be found here:
https://support.atlassian.com/jira-software-cloud/docs/search-syntax-for-text-fields/
Review that document and let us know if you still have questions about the filter you are trying to construct.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I had success with
Project in ("Team BADD") order by "ID" DESC
but go errors trying to add
AND "ID" is not EMPTY
or
AND ID is not EMPTY
I have not yet found, in the syntax document for which you provided a link, nor in Internet searches, a solution for querying whether the custom short text field is empty.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Can you provide the complete and exact JQL you are using when you get an error trying to using "empty" with the ID field?
Also show us the error message you are getting.
I have no error trying to compare a text field to EMPTY. I have tried with both a Team Managed project and a Company Managed project.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Here are my two attempts:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Can you show us the ID field within the screen that shows the list of custom fields?
When I add a custom field to a JQL statement it shows me the field type also:
You should get a suggested match for your field when you start typing in "ID, similar to what I've shown above. Make sure you select the correct matching field.
I am able to create a JQL that says
project=tka and ID is not empty
...and get the same error as you, but I don't have "ID" defined as a custom field. I think the message is misleading or maybe "ID" is a system field of some sort. I don't get a match for it when I start typing it in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
1) Suggested match for AND ID
2) Suggested match for order by "ID"
3) Query after selecting "ID Aa Short text"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It appears that you have more than one custom field named "ID"; ID and id. Having multiple fields with the same name (case insensitive) can cause unexpected issues in JQL.
Can you try using the custom field number in the criteria instead of the text?
Project in ("Team BADD") and cf[10331] is not empty order by cf[10331] desc
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you; that works, although I didn't find more than one 'ID', including in Trash.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes, but the potential matches when you typed ID into the JQL showed two fields; ID and id. In JQL terms are often evaluated without case sensitivity, so ID might be getting confused with id.
You may want to look into renaming the fields so that the names are unique.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Interestingly, the custom field search only shows one "ID". Its nearest match is "uuid". Could "id" be a system field that doesn't appear in a custom field search?
Regardless, I'll rename the field at least to avoid this conflict, and to make the name more meaningful.
At present, the field contains an Epic key, but it will probably evolve to contain the issue key for a new project called "Initiative", from which Epics will be created, so the new name will likely be "Initiative ID".
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
"id" could be a custom field in a Team Managed project. Those don't show up in the Custom Fields screen that Jira Admins use to create custom fields for Company Managed projects.
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.