Inconsistent search results when using dashes.
プラットフォームについて: Cloud および Data Center - この記事はクラウドと Data Center 両方のプラットフォームに等しく適用されます。
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.
*Fisheye および Crucible は除く
問題
When using dashes "-" in text-field custom fields you receive inconsistent search results in JQL.
診断
Diagnostic Steps
- Create text-field custom fields with values of test-123 test-456 test-789
- Search for "<customfield>" ~ test-*"
- After a re-index, you may or may not get all of those expected values from the query result
原因
- Lucene indexing doesn't index dashes, so using them in your text fields will result in inconsistent results when attempting to query them. Especially when combined with the "*" operator.
- See JRASERVER-45286 - Inconsistent behavior with contains Dash operator (-) and the response that this is not a bug.
回避策
- Replace underscores (or don't use either) for dashes for any value that you are going to be consistently searching against.
最終更新日: 2025 年 1 月 28 日
Powered by Confluence and Scroll Viewport.