Skip to main content

AQS Query node

Description

The AQS Query root node fetches items of a single design/interface and their attribute data.

alt text

Usage

All queries start with a root node. Its icon matches the design/interface being queried.

alt text

To filter the items fetched by the root node, select to add one or more child nodes.

Options

Select the root node to set its properties:

  • AQS type - change to a different root node type.

  • Design or interface - items from this design/interface will be queried.

  • Collection - items from these collections will be queried. By default, only Live is selected.

  • Sort order - choose to sort in Ascending (A -> Z) or Descending (Z -> A) order.

  • Sort attribute - if set, items will be sorted according to the chosen attribute.

  • Sort item property - if set, items will be sorted according to the chosen property.

  • Attributes - select the item attributes that you want to see data for.

info

The more attributes you select, the more data is returned. For optimal performance, only select attributes meaningful to your query.

Example

Fetch all defects that are awaiting inspection

In full detail:

Fetch items of the Defects interface where their Status attribute equals Awaiting Inspection

To see this example built step-by-step, see Example 1 - Check an attribute.

alt text
See JSON code

This code may reference designs, interfaces, attributes or items that don't exist in your company project.

{
"type": "Query",
"properties": {
"attributes": ["attributes_itemsTitle", "attributes_itemsSubtitle", "attributes_defectsStatus"],
"collectionCode": "Live",
"dodiCode": "designInterfaces_defects"
},
"children": [
{
"type": "Equals",
"children": [
{
"type": "Attribute",
"properties": {
"attributeCode": "attributes_defectsStatus"
}
},
{
"type": "AlloyId",
"properties": {
"value": ["5c8bdfb58ae862230019dc1f"]
}
}
]
}
]
}