Inconsistent search results when using dashes.

Still need help?

The Atlassian Community is here for you.

Ask the community

Platform Notice: Cloud and Data Center - This article applies equally to both cloud and data center platforms.

Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

Problem

When using dashes "-" in text-field custom fields you receive inconsistent search results in JQL.

Diagnosis

Diagnostic Steps

  1. Create text-field custom fields with values of test-123 test-456 test-789
  2. Search for "<customfield>" ~ test-*"
  3. After a re-index, you may or may not get all of those expected values from the query result

Cause

Workaround

  • Replace underscores (or don't use either) for dashes for any value that you are going to be consistently searching against.



Last modified on Jan 28, 2025

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.