Any node
Description
The Any node lets you chain multiple comparison nodes together by splitting the query into multiple branches.
Items must fulfil at least one of the conditions on the attached branches in order to be fetched by the query.
Usage
The Any node is a condition, so it can be added to the query branch directly after the root node or another logical node.
Configuration
-
Delete - remove the node from the query.
-
Swap - change to a different logical node.
Example
Fetch all defects with related inspections or jobs
In full detail:
Fetch items of the Defects interface where their Defect Inspections attribute is set OR their Raised Jobs attribute is set
See JSON code
{
"type": "Query",
"properties": {
"collectionCode": "Live",
"dodiCode": "designInterfaces_defects"
},
"children": [
{
"type": "Or",
"children": [
{
"type": "Exists",
"children": [
{
"type": "Attribute",
"properties": {
"attributeCode": "attributes_defectsWithInspectionsDefectInspection"
}
}
]
},
{
"type": "Exists",
"children": [
{
"type": "Attribute",
"properties": {
"attributeCode": "attributes_defectsRaisingJobsRaisedJobs"
}
}
]
}
]
}
]
}