首頁 / 420.3 為工單加上脈絡 / 420.3.1
420.3.1・Specialized Capabilities 9%

Assets

Assets 記錄公司有哪些設備、服務、合約與它們的關係。考試只考「會用」:認得名詞、在 request 引用 object。

考試佔 9%
官方考綱原文(這一節會考的範圍)
  • 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 欄位
本頁內容
3 分鐘速覽

會用、不會設:Assets 給工單加上「哪台、哪個、誰的」

  1. 考綱明說只考使用Utilize, but not configure:認得 schema、object type、object、attribute,會在 request 裡引用它們。
  2. 四層Object schema → object type → object → attributes。
  3. Object schema一組相關資料(例如 IT 資產);有自己的權限。
  4. Object type同類 object 的群組(Laptop、Server);可有 parent/child、繼承 attributes、可設 abstract。
  5. Assets object 欄位Jira 的 custom field,讓 request 連到 object;雙向連結,object 頁看得到相關 work item。
  6. 在哪用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 fieldWhen 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(自己的權限)Object type例:Laptop(可有 parent/child)Object例:MacBook-0042AttributesOwner、Serial、Status、Vendor…
Schema 裝 object type,object type 裝 object,object 用 attributes 描述自己。
名詞是什麼例子
Object schema一組相關資料的容器,有自己的權限設定IT Assets、Software Registry、Business Portfolio
Object type同類 object 的群組;可設 parent/child 與繼承;abstract 型別不能放 objectHardware(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 是什麼?看答案
Laptop object type 的一個 attribute;如果 Vendor 是另一個 object type,它就是 reference attribute。
資料來源(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.
在 request 引用

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)。
Help center → IT SupportReport a broken laptopSummary螢幕閃爍Your laptop(Assets object 欄位)MacBook-0042↑ 只列出 Owner=提單人的 LaptopDescription開機後約 5 分鐘開始閃
Customer 在 portal 只看到自己名下的設備。
考題長相

「agent 處理 request 時要看到受影響的伺服器,並在伺服器頁看到它所有的 incident」→ 在 request type 加 Assets object 欄位。

資料來源(5)・1 點無官方原文有疑慮時點開看官方原文
易錯觀念

考題愛用的錯誤說法

Abstract object type 可以直接建立 object。
Abstract 型別不能放 object,只把 attributes 傳給 child。
Object 的 Key 可以改。
Key 由 schema key+數字組成,不能改。
在 work item 加 object 只是單向記錄。
會建立雙向連結,object 頁看得到相關 work item。
可以用 Assets object 欄位在 JQL 排序結果。
Cloud 不支援用 Assets object 欄位排序搜尋結果。
Filter scope(AQL)可以用 ${reporter} 這類 placeholder。
Placeholder 只能用在 Filter work scope。
資料來源(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 fieldWhen 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 fieldIn Assets for Cloud, users can't use an Assets object field to sort search results in a JQL query.
  • Configure an Assets object custom fieldUse 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

約 30 分鐘Jira admin(建 Assets object 欄位,要有 Jira 授權);project admin(request type);Standard 以上(Assets 含在付費方案)

第一次做 Lab?先看 Lab 環境準備:用測試站台、準備測試帳號。畫面名稱可能隨 Atlassian 更新而不同,以下以現行畫面為準。

目標:在 Assets 認出 schema、object type、object、attribute 四層,再透過 Assets object 欄位把一台筆電掛到 request 上,從兩端看這條雙向連結。

這個 Lab 對應的考點

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)。

步驟

  1. 你應該看到:左邊是 object type 的樹狀清單(Laptop);schema 有自己的設定與權限。
  2. 你應該看到:除了你加的 Owner,還有每個 object 都有的預設 attributes:Name、Key、Created、Updated(部分站台另有 Display name)。
  3. 你應該看到:Key 是 schema key+數字(例如 LIT-1),不能改;Owner 顯示 Leo。
  4. 你應該看到:AQL 語法正確時旁邊出現打勾;Object schema 是必填,另外兩個是選填。
  5. 你應該看到:表單上多了 Your laptop 欄位。
  6. 你應該看到:通常只列出 MacBook-Leo,沒有 MacBook-Ana:Filter work scope 用提單人過濾。選它並送出。
  7. 你應該看到:Object 頁看得到這張 request:連結是雙向的。
  8. 你應該看到:Queue 多一欄,直接看到每張 request 掛的是哪台筆電。

試試看:改一個設定,觀察差異

T1把 ${reporter.label} 那段改放到 Filter scope。看結果
Filter scope 不能用 placeholder:通常會驗證失敗或過濾不出東西。Placeholder 只能用在 Filter work scope。做完改回。
T2在 work item 搜尋寫 project = HELP ORDER BY "Your laptop"。看結果
不能用 Assets object 欄位排序搜尋結果。
T3(選做)建一個 object type Hardware 設成 abstract,把 Laptop 放到它底下,再試著在 Hardware 直接建 object。看結果
做不到:abstract 型別不能放 object,只把 attributes 傳給 child。
心像錨點:閉上眼睛想一次這個畫面

Assets 左邊的樹:Lab IT → Laptop;右邊 MacBook-Leo 的頁面下方掛著那張 request。Request 看 object、object 看 request。庫、類、件、性。

收尾

  • 從 request type 的表單移除 Your laptop;queue 移除這一欄。
  • Lab IT schema 與 Your laptop 欄位可以留著,之後的 Lab 可能用得到。
資料來源(4)有疑慮時點開看官方原文
一分鐘腦內整理

讀完了?用這張收攏整節

庫、類、件、性Schema、type、object、attribute。
雙向連結Request 看 object、object 看 request。
Schema、type、object、attribute
  • Schema → type → object → attribute。
  • Reference attribute 把 object 串起來。
Assets object 欄位
  • Assets object 欄位=雙向連結。
  • Filter scope 依 Assets;filter work scope 依目前 work item(可用 placeholder)。
本節練習

做題

題目載入中…

本教材為原創整理,非 Atlassian 官方出版品;題目皆為原創,不含第三方題庫題幹。考試沿用 project/issue 等用語,現行 Jira Service Management 已改稱 space/work item;customer 端仍叫 request。