Asset related issues can be searched via the "Assets" custom field or by handy AIP JQL functions.
Searching via custom field
Searching via custom field is as simple as any field in JIRA. In issue navigator, type custom field name (by default it is Assets) and use generic text search. Text search is not case sensitive.
Assets ~ Laptop
|Asets name like Laptop. Laptop2, MyLaptop or MyLaptop2 matches|
|Assets ~ 'My Laptop'||You must enclose spaces or special characters in a string|
|Assets is not EMPTY||Issues with Asset custom field has a value|
|Assets ~ '#55'||Searches for Asset ID|
assetByField("FIELD_NAME", "FIELD_VALUE", ...)
Introduced in version 7.0.3
Assets and Inventory Plugin supports to filter issued with the selected assets' field values.
It exactly works like referenceAsset, please see Search functions for details, just replace the referenceAsset with assetByField
Field names are case sensitive.
|Example for referenceAsset search function||Example for assetByField JQL function|
|referenceAsset("asset.assetTag", "\"marla singer\"")||assetByField("asset.assetTag", "\"marla singer\"")|
A few examples here:
issue in assetByField("Object Approvers", "mdavis-sd-demo")
|Find the issues that have assets with "Object Approvers" field is mdavis-sd-demo value. Here mdavis-sd-demo is the user name|
issue in assetByField("Object Owner", "tyler@@@marla")
|Find the issues that have assets with "Object Owner" field is tyler or marla user names. User key will work also.|
issue in assetByField("asset.status", "In stock", "asset.substatus", "Defective")
|Find the issues that have assets with "Status" system field is "In Stock" and "Substatus" system field is "Defective". These values must be English value of the field.|
You can find examples for all other field types at Search functions documentation, just remember to replace the referenceAsset with assetByField.
Filtering asset with for all possible attribute types and system fields
It is possbile to add multiple values and for an extreme example we can add all possible field types in one go:
|The JQL function filters following asset:||Issue search screen|
As of now, there are three JQL functions bundled with Assets and Inventory Plugin.
Here are some samples