アセット オブジェクト カスタム フィールドを設定する
Assets in Jira Service Management is a Premium and Enterprise only feature. Tell me more about Assets.
アセット オブジェクトのカスタム フィールドを表示または編集する際は、特別な権限がユーザーに適用されます。
Any user - even those who are not licensed for Jira Service Management or any Atlassian products - is granted a temporary “User” role when an Assets objects custom field is added to a request type which can be accessed by end-users on a portal. This allows them to view the Assets objects fields and their values.
Jira Software、Jira Service Management、および Jira Work Management の各ユーザーに対して、一時的な「オブジェクト スキーマ ユーザー」ロールが適用されます。これによって、アセット オブジェクトのカスタム フィールドのコンテンツをユーザーが既存の編集権限をすでに持っている作業項目内で表示して編集できるようになります。
これらのロールは、ご利用のライセンスでの合計ユーザー数に計上されません。
アセット オブジェクトのカスタム フィールドを使用すると、Jira Service Management でアセット オブジェクトを表示できます。アセット オブジェクト フィールドに表示するオブジェクトを選択するには、次の 3 つの方法でフィールドを設定できます。
オブジェクト スキーマを使用して、オブジェクト スキーマでオブジェクトをフィルタリングする
use Filter Scope (AQL) to filter objects based on information from Assets
use Filter Issue Scope (AQL) to filter objects based on information from the current issue
オブジェクト スキーマ フィールドを使用する
Use the Object schema field to select which object schema will be linked to this Assets objects field. This field is required.
If you have selected objects from a different object schema in the Filter Scope (AQL) field, only objects in this object schema will be displayed.
フィルター スコープ (AQL) フィールドを使用する
Use the Filter Scope (AQL) field to filter Assets objects based upon information from Assets.
このフィールドはオプションです。このフィールドではプレースホルダーを使用できません。
たとえば、特定の製造元に基づいて特定モデルのラップトップのみを表示するアセット オブジェクト フィールドを作成する場合は、AQL クエリ objectType = “Laptop” AND Manufacturer = “Apple”
を入力すると、これらのオブジェクトのみを表示できます。
フィルター課題スコープ (AQL) フィールドを使用する
Use the Filter Issue Scope (AQL) field to filter your data using information from within the issue itself - based on other Assets object fields or Jira system fields that contain information about the issue.
このフィールドでは検証が行われます。正しい AQL 構文には マークが付けられ、間違った AQL ステートメントには マークが付けられます。
このフィールドはオプションです。[このフィールドがカスタマー ポータルに表示されたらデフォルト オブジェクトを表示する] を有効にすると、このフィールドにオブジェクトが自動で表示されます。
このフィールドではプレースホルダーを使用できます。プレースホルダーの詳細をご確認ください。
課題内のオブジェクト フィールドを使用してフィルタリングする
You can use the Filter Issue Scope (AQL) field to reference Assets object fields from within the issue. This can be used to link together two or more Assets object fields and create a cascading list.
たとえば、別のカスタム フィールドで選択した製造元に基づいて、特定モデルのラップトップのみを表示するアセット オブジェクト フィールドを作成する場合は、2 つの個別のアセット オブジェクト フィールドを作成します。
Create your first Assets object field and name it “Manufacturer”. Configure the field to show only “Manufacturer” objects retrieved from Assets by setting the Filter Scope (AQL) to objectType = “Manufacturer”
.
Now create the second Assets object field and name it “Model”. Configure the Filter Issue Scope (AQL) to show only the models of laptop from the manufacturer field in the issue by typing objectType = “Laptop” AND Manufacturer = ${customfield_xxxxx.label}
where “xxxxx” is the custom field ID of the “Manufacturer” custom field.
これで、“Model (モデル)” フィールドには、その製造元に対応するラップトップのみが表示されます。
When using the Filter Issue Scope (AQL) field, you must use the custom field ID (“customfield_xxxxx”) to identify custom fields and not the custom field name (“Manufacturer”).
ORDER BY is ignored when using Filter Scope or Filter Issue Scope within the Assets object field.
課題内のシステム フィールドを使用してフィルタリングする
You can use the Filter Issue Scope (AQL) field to reference system fields from within the issue like “Assignee” and “Project”.
For example, if you wanted to only show a list of laptops owned by the current Assignee, you could configure the Filter Issue Scope (AQL) field by typing objectType = “Laptop” AND "Owner" LIKE ${assignee.label}
. In this case, each laptop would have an “Owner” attribute that corresponds to the name of the assignees in Jira.
Jira フィールドの中には、複数の値を保持できるものもあれば単一値しか保持できないものもあります。フィールド値ラベルまたは ID を使用して Jira フィールドを参照します。
Jira のシステム フィールドでは大文字と小文字が区別されるため、次のように正確に入力する必要があります。
課題キー | ラベル/説明 | 複数 | タイプ | ${key.id} | ${key.label} |
---|---|---|---|---|---|
assignee | 担当者 | false | ApplicationUser | ユーザー キー | 表示名 |
dueDate | 期限 | false | 日付 | dueDate | dueDate |
修正バージョン | 修正バージョン | true | 文字列/カスタム アセット オブジェクト | ID | 名前 |
issueType | 課題タイプ | false | 文字列/カスタム アセット オブジェクト | ID | 名前 |
コンポーネント | コンポーネント | true | 文字列/カスタム アセット オブジェクト | ID | 名前 |
priority | 優先度 | false | 文字列/カスタム アセット オブジェクト | ID | 名前 |
project | Project | false | 文字列/カスタム アセット オブジェクト | ID | 名前 |
reporter | 報告者 | false | ApplicationUser | ユーザー キー | 表示名 |
resolution | ソリューション | false | 文字列/カスタム アセット オブジェクト | ID | 名前 |
summary | 要約 | false | 文字列 | summary | summary |
Jira Service Management のアセットには、Jira Service Management Data Center のアセットのアセットに含まれるシステム フィールド タイプは含まれません。
これらのシステム フィールド タイプで検索する場合は、これらのフィールドをモデル化したアセット オブジェクトを作成する必要があります (つまり、独自のプロジェクト コンポーネント アセット オブジェクトを作成する必要がある)。その後、それらを別のカスタム フィールドの値として設定するか、フィールド ラベルや ID を使用できます。
複数の値を持つプレースホルダーを使用する
フィールドに複数の値が含まれている場合、プレースホルダーはインデックス ${customfield_xxxxx.id${1}}
を使用して単一の値を返すことも、objectId IN (${customfield_xxxxx.id${0}})
のようなクエリ、または Label In (${customfield_xxxxx.label${0}})
のようなクエリを使用してすべての値を一度に返すこともできます (「xxxxx」は「Manufacturer」カスタム フィールドのカスタム フィールド ID です)。
プレースホルダーの使用は、自動化フロー内ではサポートされていません。
テキストのカスタム フィールド タイプはプレースホルダーと併用できません。プレースホルダーは設定済みの値だからです。
この内容はお役に立ちましたか?