OR の JQL でエラーが発生します。
プラットフォームについて: サーバーと Data Center のみ。この記事は、サーバーおよび Data Center プラットフォームのアトラシアン製品にのみ適用されます。
問題
While trying to run an advanced JQL query such as:
project = IT AND status = Open OR project =test
it will result in the below error:
Even though the first two statement are true and the third statement is in "OR" clause.
次のようにします。
- Create a JQL with and OR operand.
- Make sure the first statement is correct.
- Type a random value for the filed after the "OR" operand.
診断
環境
- The scenario was tested in the latest version of JIRA 7.1.9
- PostGres SQL
診断ステップ
- Run a JQL with a value that does not exist for a field. For example, in the below JQL:
project = IT AND status = Open OR project =test
the value "test" does not exist for the Field "project".
- It does not matter if it is with the OR section.
原因
The main cause is that JIRA can not search for a value that does not exist and it is equivalent to looking for NULL. It may seem that it is using an "OR" operand but the value needs to be present in order for the JQL to process.
ソリューション
Please make sure that the value exist for the filed that you are trying to search.