アセットで JQL 関数を使用する

Assets has moved to platform! That means it is now accessible from any Jira app directly through the app switcher.. What Assets is and how it works.

Assets supports the Jira Query Language (JQL) functions aqlFunction and aqlFunctionWithoutFilterScope, letting you query work items with object custom fields using Assets Query Language (AQL) aqlFunction respects the field's Filter scope;aqlFunctionWithoutFilterScope ignores it so you can find links to objects that have since fallen out of scope.

アセット クエリ言語 (AQL) の詳細

If an aqlFunction() or aqlFunctionWithoutFilterScope(aql) query matches more than 10,000 assets, the search won't run and you'll get an error. To fix this, refine your AQL to add more selective criteria, or split broad schemas into smaller, more targeted queries.

aqlFunction(aql)

構文

aqlFunction(aql)

サポートされるフィールド

アセット オブジェクト カスタム フィールド

サポートされる演算子

IS, IS NOT, IN, NOT IN

例

次の JQL の例では、customField というフィールドを使用して アセット オブジェクトのカスタム フィールドを表します (フィールドの名前は Jira 管理者によって定義されます)。

  • Web サイトが報告されていて、カスタマー アカウント マネージャーが Mathias Edblom である作業項目を見つけます。
    customField in aqlFunction("Customer.\"Account Manager\" = \"Mathias Edblom\"")

  • アプリが報告されていて、アプリのインストール先が仮想サーバーである作業項目を見つけます。
    customField in aqlFunction("Host.Virtual = true")

オブジェクト スキーマで aqlFunction を使用したり、オブジェクト タイプを指定したりすると、パフォーマンスが向上します。たとえば、Jira Service Management SLA の計算におけるクエリの実行時間を短縮するには、オブジェクト タイプ名、スキーマ ID、またはオブジェクト キーを使用して AQL を制限します。

aqlFunctionWithoutFilterScope(aql)

Works exactly like aqlFunction(aql), but ignores the Assets object custom field's Filter scope when it looks up objects. Use it to find work items whose linked object was valid when it was selected but has since fallen outside the field's Filter scope — for example, an object whose Status changed to Decommissioned, Retired, or Archived after it was linked.

The aqlFunctionWithoutFilterScope(aql) does not introduce unlimited access to the Assets Schemas or changes permissions. Like aqlFunction(), the search is still limited to objects in the object schema selected in the Assets Custom Field’s configuration, and only returns work items that are linked to those objects. AQL only matches objects relevant to that field, the only difference is that the field's Filter scope is not added to your JQL query.

構文

aqlFunctionWithoutFilterScope(aql)

サポートされるフィールド

アセット オブジェクト カスタム フィールド

サポートされる演算子

IS, IS NOT, IN, NOT IN

例

次の JQL の例では、customField というフィールドを使用して アセット オブジェクトのカスタム フィールドを表します (フィールドの名前は Jira 管理者によって定義されます)。

  • Find work items linked to a laptop whose Status is Decommissioned, even when the field’s Filter scope only allows Active:”
    customField IN aqlFunctionWithoutFilterScope("objectType = Laptop AND Status = Decommissioned")

  • Find work items where none of the linked objects is Decommissioned, ignoring the Filter scope. Work items with an empty field are not returned:”
    customField NOT IN aqlFunctionWithoutFilterScope("Status = Decommissioned")

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

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