Assets
Assets 記錄公司有哪些設備、服務、合約與它們的關係。考試只考「會用」:認得名詞、在 request 引用 object。
官方考綱原文(這一節會考的範圍)
- Utilize, but not configure, object schemas, object types, objects, and attributes.使用(不需設定)object schema、object type、object 與 attribute
- Reference Assets-related custom fields in request types, forms, queues, etc.在 request type、forms、queue 等引用 Assets 欄位
會用、不會設:Assets 給工單加上「哪台、哪個、誰的」
- 考綱明說只考使用Utilize, but not configure:認得 schema、object type、object、attribute,會在 request 裡引用它們。
- 四層Object schema → object type → object → attributes。
- Object schema一組相關資料(例如 IT 資產);有自己的權限。
- Object type同類 object 的群組(Laptop、Server);可有 parent/child、繼承 attributes、可設 abstract。
- Assets object 欄位Jira 的 custom field,讓 request 連到 object;雙向連結,object 頁看得到相關 work item。
- 在哪用Request type 表單、forms、queue 欄位、JQL、automation(AQL)。
資料來源(5)・1 點無官方原文有疑慮時點開看官方原文
- 找不到官方原文:只考使用出自官方考綱原文(Utilize, but not configure),產品文件不會這樣寫。
- What are object schemas?
Each object schema also has its own set of permissions, which allows you to hide or show different information for different users or groups.
- What are object types?
An object type in Assets represents a group of similar objects in an object schema.
- What are object types?
Each object type can have a single parent object type and multiple child object types.
- What are attributes?
Attributes in Assets are specific details linked to objects, such as descriptions, model numbers, related objects, or assigned owners.
- About the Assets object custom field
When you add an object to the Assets object field, it creates a two-way link between the work item and the object.
Schema、type、object、attribute
| 名詞 | 是什麼 | 例子 |
|---|---|---|
| Object schema | 一組相關資料的容器,有自己的權限設定 | IT Assets、Software Registry、Business Portfolio |
| Object type | 同類 object 的群組;可設 parent/child 與繼承;abstract 型別不能放 object | Hardware(abstract)→ Laptop、Server |
| Object | 具體的一筆資料 | MacBook-0042、db-prod-01 |
| Attribute | 描述 object 的欄位:文字、數字、狀態、日期、使用者、reference(連到另一個 object) | Owner、Serial number、Status、Vendor |
| 預設 attributes | 每個 object 都有:Name、Key(不能改)、Created、Updated(另有 Display name) | Key 例:ITA-123 |
Q1「Laptop 的 Vendor 是 Apple」中,Vendor 是什麼?看答案
資料來源(5)有疑慮時點開看官方原文
- What are object schemas?
An object schema is a collection of information in Assets used to track assets, configuration items, and resources, and to understand and visualise the critical relationships between them.
- What are object types?
Similarly you can set some object types as abstract, meaning that they can't contain any objects of their own but can pass their attributes to their children, who can themselves contain objects.
- What are objects?
In Assets, an object represents a unique item within an object schema, such as a laptop, server, contract, or vehicle.
- What are attributes?
Attributes can store various data types, including text, numbers, statuses, and object references.
- What are attributes?
Key - is a unique identifier based on the object schema key and unique integer. Keys cannot be changed and may not always be sequential.
Assets object 欄位
- Assets object 是一種 Jira custom field;建立與編輯要 Jira 授權(通常由 Jira admin 建、加到 screen 與 request type)。
- 加進 request type 的表單後,customer 提單時就能選「哪一台電腦」「哪個系統」。
- 連結是雙向的:work item 上看得到 object,object 頁看得到所有相關的 work item(追根因、評估變更影響)。
- 欄位設定有三種過濾:Object schema(必填)、Filter scope(AQL)依 Assets 資料過濾、Filter work scope(AQL)依目前 work item 的其他欄位過濾(可做連動選單,例如先選 Manufacturer 再選 Model)。
- Filter work scope 可用 placeholder,例如
objectType = "Laptop" AND Owner LIKE ${reporter.label}:只列出提單人自己的筆電;可勾 Display a default object in the customer portal。 - 也可以放在 forms、當 queue 的欄位、用在 automation(Lookup objects、Edit object)。
- 限制:Assets object 欄位不能拿來在 JQL 排序(ORDER BY)。
「agent 處理 request 時要看到受影響的伺服器,並在伺服器頁看到它所有的 incident」→ 在 request type 加 Assets object 欄位。
資料來源(5)・1 點無官方原文有疑慮時點開看官方原文
- 找不到官方原文:Assets 欄位用在 forms、queue 欄位存檔的 Assets 欄位文件沒有說明;automation 的 Lookup objects/Edit object 在 Jira automation actions 有依據。
- About the Assets object custom field
To create or edit Assets object custom fields, users must have a Jira license.
- About the Assets object custom field
When you add an object to the Assets object field, it creates a two-way link between the work item and the object.
- Configure an Assets object custom field
This allows you to create a cascading list where the options in one list depend on the selection made in another.
- Configure an Assets object custom field
This field is optional, and you can enable Display a default object in the customer portal to automatically display an object in the field.
- About the Assets object custom field
In Assets for Cloud, users can't use an Assets object field to sort search results in a JQL query.
考題愛用的錯誤說法
資料來源(5)有疑慮時點開看官方原文
- What are object types?
Similarly you can set some object types as abstract, meaning that they can't contain any objects of their own but can pass their attributes to their children, who can themselves contain objects.
- What are attributes?
Key - is a unique identifier based on the object schema key and unique integer. Keys cannot be changed and may not always be sequential.
- About the Assets object custom field
When you add an object to the Assets object field, it creates a two-way link between the work item and the object.
- About the Assets object custom field
In Assets for Cloud, users can't use an Assets object field to sort search results in a JQL query.
- Configure an Assets object custom field
Use the Filter scope (AQL) field to filter Assets objects based on information from Assets. This field is optional, and placeholders cannot be used.
實作 Lab:從 Assets schema 一路點到 request
第一次做 Lab?先看 Lab 環境準備:用測試站台、準備測試帳號。畫面名稱可能隨 Atlassian 更新而不同,以下以現行畫面為準。
目標:在 Assets 認出 schema、object type、object、attribute 四層,再透過 Assets object 欄位把一台筆電掛到 request 上,從兩端看這條雙向連結。
Object schema → object type → object → attribute;Assets object 欄位建立雙向連結;Filter scope 依 Assets 資料、不能用 placeholder;Filter work scope 依目前 work item、可以用 placeholder;不能用 Assets object 欄位在 JQL 排序。
準備
- 考試只考「會用」,以下是準備資料,不是考點:在 Assets 建一個 object schema Lab IT,建 object type Laptop,加一個 User 類型的 attribute Owner;建兩個 object:MacBook-Leo(Owner=Leo)、MacBook-Ana(Owner=Ana)。
步驟
- 你應該看到:左邊是 object type 的樹狀清單(Laptop);schema 有自己的設定與權限。
- 你應該看到:除了你加的 Owner,還有每個 object 都有的預設 attributes:Name、Key、Created、Updated(部分站台另有 Display name)。
- 你應該看到:Key 是 schema key+數字(例如 LIT-1),不能改;Owner 顯示 Leo。
- 你應該看到:AQL 語法正確時旁邊出現打勾;Object schema 是必填,另外兩個是選填。
- 你應該看到:表單上多了 Your laptop 欄位。
- 你應該看到:通常只列出 MacBook-Leo,沒有 MacBook-Ana:Filter work scope 用提單人過濾。選它並送出。
- 你應該看到:Object 頁看得到這張 request:連結是雙向的。
- 你應該看到:Queue 多一欄,直接看到每張 request 掛的是哪台筆電。
試試看:改一個設定,觀察差異
T1把 ${reporter.label} 那段改放到 Filter scope。看結果
T2在 work item 搜尋寫 project = HELP ORDER BY "Your laptop"。看結果
T3(選做)建一個 object type Hardware 設成 abstract,把 Laptop 放到它底下,再試著在 Hardware 直接建 object。看結果
Assets 左邊的樹:Lab IT → Laptop;右邊 MacBook-Leo 的頁面下方掛著那張 request。Request 看 object、object 看 request。庫、類、件、性。
收尾
- 從 request type 的表單移除 Your laptop;queue 移除這一欄。
- Lab IT schema 與 Your laptop 欄位可以留著,之後的 Lab 可能用得到。
資料來源(4)有疑慮時點開看官方原文
- What are object types?
they can’t contain any objects of their own but can pass their attributes to their children
- About the Assets object field
When you add an object to the Assets object field, it creates a two-way link between the work item and the object.
- Configure the Assets object field
This field is optional, and placeholders cannot be used.
- What are attributes?
Keys cannot be changed and may not always be sequential.
讀完了?用這張收攏整節
- Schema → type → object → attribute。
- Reference attribute 把 object 串起來。
- Assets object 欄位=雙向連結。
- Filter scope 依 Assets;filter work scope 依目前 work item(可用 placeholder)。
做題
題目載入中…
本教材為原創整理,非 Atlassian 官方出版品;題目皆為原創,不含第三方題庫題幹。考試沿用 project/issue 等用語,現行 Jira Service Management 已改稱 space/work item;customer 端仍叫 request。