Skip to main content

Example 1 - Check an attribute

This example demonstrates how to build the following query in the AQS Builder:

Fetch all defects that are awaiting inspection

In full detail:

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

Configure the root node

  1. Select the root node and set the following properties:

    • AQS Type - AQS Query
    • Design or interface - Defects
    • Collection - Live
    • Attributes - Title, Subtitle, Status
alt text

Add a comparison node

  1. Select and choose the Equals node type from the list.
alt text
alt text

Fill the left segment

  1. Select on the left and choose the Attribute node type from the list. The node will default to the first relevant attribute in the design/interface being queried.
alt text
alt text
  1. To change the selected attribute, select to open the Pathfinder. As Status is a Link attribute, you must select its arrow and then Select this.
alt text
alt text

Fill the right segment

  1. Select on the right, choose the Item node type, and then Choose your Items.
alt text
  1. Choose Awaiting Inspection from the list of possible Status items.
alt text
alt text
Note

As shown above, it's possible to select multiple Status items. The query will fetch any Defects item with an applicable Status value.

Finish

  1. Select Done (bottom-left) to finish.
See JSON code
{
"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"]
}
}
]
}
]
}