With the new assets management API for Jira Cloud, developers can bring a lot more context into Jira to create a faster and more powerful issue resolution experience.
Join Andrea, a developer on Jira Service Desk, as she gives a holistic overview of asset management in Jira Cloud. We’ll step through an ideal end-to-end user experience from help seekers raising a request for their laptop, to an agent resolution. In this talk, you’ll learn what powers these experiences and exactly how to create them using the Jira Cloud Assets API and integration points.
64. Syncing
assets
Define by type
Create an asset (e.g. MacBook Pro 15” 2016)
PUT
Assign to user
/rest/assetapi/asset
{
"type": {…}
"origin": {…},
"label": {…},
"assignee": {
"accountId": "27505:c73cd17-..-d754d02420be"
},
"fields": [{…}]
}
Identify the
origin
65. Syncing
assets
Define by type
Create an asset (e.g. MacBook Pro 15” 2016)
PUT
Assign to user
/rest/assetapi/asset
{
"type": {…}
"origin": {…},
"label": {…},
"assignee": {
"email": "test@example.com"
},
"fields": [{…}]
}
Identify the
origin
66. Syncing
assets
Define by type
Create an asset (e.g. MacBook Pro 15” 2016)
PUT /rest/assetapi/asset
{
"type": {…},
"origin": {
"appKey": "com.myasset.app",
"originId": "5-113-51143-2032"
},
"label": {
"value": "MacBook Pro 15" 2016"
}
"assignee": {…},
"fields": [{…}]
}
Identify the
origin
Assign to user
67. Using the Jira Cloud Assets API
Syncing
assets
Configuring the
custom field
Enriching the
issue view
74. Filter the asset custom field
to search by asset type
RELATIONSHIP #1: ASSET AND TYPE
75.
76.
77.
78.
79.
80.
81. Restrict or prioritise the
asset custom field search
based on assignee
RELATIONSHIP #2: ASSET AND ASSIGNEE
82. Asset Type Assignee
Macbook Pro 15 inch laptop Narul
Macbook Pro 15 inch laptop Leo
IntelliJ IDEA Ultimate software Tanya
Apple iMac Desktop desktop Gerard
Apple iMac Desktop desktop Narul
Asset Type Assignee
Macbook Pro 15 inch laptop Narul
Macbook Pro 15 inch laptop IT Loan
IntelliJ IDEA Ultimate software Narul
Apple iMac Desktop desktop Leo
Apple iMac Desktop desktop Narul
83. Asset Type Assignee
Macbook Pro 15 inch laptop Narul
Macbook Pro 15 inch laptop IT Loan
IntelliJ IDEA Ultimate software Narul
Apple iMac Desktop desktop Leo
Apple iMac Desktop desktop Narul
84. Store the origin
of a linked asset
in the asset custom field
RELATIONSHIP #3: ASSET AND ORIGIN
92. Render information about
an asset linked to a Jira issue
in the asset custom field panel
RELATIONSHIP #3: ASSET AND ORIGIN
93.
94.
95. …
"modules": {
"assetPanels": [{
"key": "my-asset-panel",
"url": “/asset-panel?appKey={asset.appKey}
&originId={asset.originId}
&fieldName={asset.field.name}”,
"name": {
"value": "My Asset Panel"
}
}]
}
…
Enriching the
issue view
Define your
panel URL
Link to related
issues
Add an assetPanels module to the connect descriptor
Render fields
96. …
"modules": {
"assetPanels": [{
"key": "my-asset-panel",
"url": “/asset-panel?appKey={asset.appKey}
&originId={asset.originId}
&fieldName={asset.field.name}”,
"name": {
"value": "My Asset Panel"
}
}]
}
…
Enriching the
issue view
Define your
panel URL
Add an assetPanels module to the connect descriptor
Link to related
issues
Render fields
97. …
"modules": {
"assetPanels": [{
"key": "my-asset-panel",
"url": “/asset-panel?appKey={asset.appKey}
&originId={asset.originId}
&fieldName={asset.field.name}”,
"name": {
"value": "My Asset Panel"
}
}]
}
…
Enriching the
issue view
Define your
panel URL
Add an assetPanels module to the connect descriptor
Link to related
issues
Render fields
98. Enriching the
issue view
Define your
panel URL
asset.originId 1
asset.appKey com.myasset.app
asset.field.name Devices
/issues/?jql=“Devices”=“com.myasset.app/1”
Render fields
Link to related
issues
99. Enriching the
issue view
Define your
panel URL
/issues/?jql=“{asset.field.name}”=
“{asset.appKey}/{asset.originId}”
asset.originId 1
asset.appKey com.myasset.app
asset.field.name Devices
Render fields
Link to related
issues