This feature is introduced at AIP v7.0.1.
We are happy to introduce search functions. First functions are to filter assets by referenced assets. More functions will be added later.
referenceAsset
referenceAsset function lets you to filter assets by referenced assets value. For example there is Computer asset which has Mouse reference asset. You can filter all Computers having Mouse that assigned to a user such as current, reporter, assignee or a specific user.
You can use this function at Basic Search of Asset Navigator for "Asset List" or "Asset List by Asset Type" type of attributes.
Syntax | referenceAsset("FIELD NAME 1", "VALUE 1", "FIELD NAME 2", "VALUE 2", ..) |
---|---|
Supported fields | "Asset List", "Asset List by Asset Type" |
Description | Field name and value pairs are expected. Number of parameters should be an even number. |
Examples:
Field name to query | Description | Examples |
---|---|---|
Text Based System Fields:
Text Based Attributes (User defined fields)
Use exact field name for attributes. Field names are case sensitive | Query with 3 different type of field values at a time. First Name is a Text field, Jira User is a Jira Single User Select field and Cities is a checkbox field. : referenceAsset("First Name", "marla", "Jira User", "tyler", "Citites","Ada") | |
User based System Fields:
User based Attributes (User defined fields)
Use exact field name for attributes. Field names are case sensitive | Query with user name or user key. Variables: Following variables are available:
| Query with user key: referenceAsset("asset.assignee", "JIRAUSER18101") Query with user name: referenceAsset("asset.owner", "tyler") Query "Jira Users" field contains "marla" and city is Ada. referenceAsset("Jira Users", "marla", "City", "Ada") |
List based System Fields:
List based Attributes (User defined fields): Use exact field name. Field names are case sensitive
| Put 3 @ chars between keywords like "Ada@@@Sel" | Query Cities having Lima or İstanbul: referenceAsset("Cities", "Lima@@@İstanbul") |
referenceAssetByType // COMING SOON
referenceAssetByType works just like referenceAsset with one more additional parameter which lets you to filter assets by asset type.
referenceAssetByType("ASSET TYPE NAME", "FIELD NAME", "VALUE")
Function signature | referenceAssetByType("ASSET TYPE NAME 1", "FIELD NAME 1", "VALUE 1", "ASSET TYPE NAME 2", "FIELD NAME 2", "VALUE 2", ...) |
Description | Asset type, field name and value parameters are expected. Number of parameters should 3 or multiples 3. |