JQL キーワード

アトラシアンは Jira 用語の更新を行っており、「課題」から「作業項目」へ、「プロジェクト」から「スペース」へと移行しています。

現在、こうした変更をロールアウトしているため、新しい用語を使用する一部の JQL エントリがまだ機能しない場合があります。この問題が発生した場合は、代わりに古い用語の利用をお試しください。

There are no changes to existing JQL queries.

ここでは高度な検索に使用するキーワードに関する情報について説明します。JQL のキーワードは、次のうちいずれかに当てはまる単語または語句となります。

  • 2 つ以上の句を結合して複雑な JQL クエリを形成する

  • 1 つ以上の句のロジックを変更する

  • 演算子のロジックを変更する

  • JQL クエリ内に明確な定義がある

  • JQL クエリの結果を置き換える特定の関数を実行する。

AND

複数の句を組み合わせて検索を絞り込むために使用します。

括弧を使用することで句の実行順序を制御できます。

  • "New office" スペース内のすべてのオープンな作業項目を検索:

    space = "New office" and status = "open"
  • jsmith に割り当てられたオープンかつ緊急のすべての作業項目を検索:

    status = open and priority = urgent and assignee = jsmith
  • Find all work items in a particular space that are not assigned to jsmith:

    space = JRA and assignee != jsmith
  • 複数のスペースにおいて、複数のバージョン番号で構成される特定のリリースに対するすべての作業項目を検索:

    space in (JRA,CONF) and fixVersion = "3.14"
  • 報告者と担当者が Jack、Jill、John のいずれでもないすべての作業項目を検索:

    reporter not in (Jack,Jill,John) and assignee not in (Jack,Jill,John)

または

複数の句を組み合わせて検索範囲を広げるために使用します。

括弧を使用することで句の実行順序を制御できます。

(Note: also see IN, which can be a more convenient way to search for multiple values of a field.)

  • jsmith または jbrown のいずれかが作成したすべての作業項目を検索:

    reporter = jsmith or reporter = jbrown
  • Find all work items that are overdue or where no due date is set:

    duedate < now() or duedate is empty

NOT

個別の句、または括弧を使用した複雑な JQL クエリ (複数の句で構成されたクエリ) の否定に使用して、検索精度を高めることができます。

(Note: also see NOT EQUALS ("!="), DOES NOT CONTAIN ("!~"), NOT IN and IS NOT.)

  • jsmith 以外のすべてのユーザーに割り当てられたすべての作業項目を検索:

    not assignee = jsmith
  • jsmith または jbrown のいずれかが作成したすべての作業項目を検索:

    not (reporter = jsmith or reporter = jbrown)

EMPTY

Used to search for work items where a given field does not have a value. See also NULL.

Note that EMPTY can only be used with fields that support the IS and IS NOT operators. To see a field's supported operators, check the individual field reference.

  • 期限が設定されていないすべての作業項目を検索:

    duedate = empty

    または

    duedate is empty

NULL

Used to search for work items where a given field does not have a value. See also EMPTY.

Note that NULL can only be used with fields that support the IS and IS NOT operators. To see a field's supported operators, check the individual field reference.

  • 期限が設定されていないすべての作業項目を検索:

    duedate = null

    または

    duedate is null

ORDER BY

検索結果をその値に基づいて並べ替えるフィールドを指定するために使用します。この要件は JQL クエリの最後に記述する必要があります。そうしないと、JQL は無効になります。

既定では、フィールド独自の並び順が使用されます。昇順 (asc) または降順 (desc) を指定することで、この順序をオーバーライドできます。

  • Find all work items without a DueDate, sorted by CreationDate:

    duedate = empty order by created
  • 期限が設定されていないすべての作業項目を検索し、作成日、および優先度 (最高から最低へ) で並べ替え:

    duedate = empty order by created, priority desc
  • DueDate がないすべての作業項目を、CreationDate でソートして、次に優先度 (最低から最高) で検索します。

    duedate = empty order by created, priority asc

Ordering by Components or Versions will list the returned work items first by Space, and only then by the field's natural order (see JRA-31113).

さらにヘルプが必要ですか?

アトラシアン コミュニティをご利用ください。