How to evaluate child work items#

Introduction#

This guide describes, how you can take child items into consideration for the evaluation of ado tickets/work items. The use case for this example looks like the following:

Epic work items, which are not in state “Done” must:

  • not be overdue

  • not have any related work items (children) which are not in state “Done” and overdue

to return a GREEN status.

Adjusting the config files#

The ado fetcher/evaluator config#

20  children:
21    get: true
22    evaluate:
23      checks:
24        fields:
25          state:
26            fieldName: "State"
27            conditions:
28              resolved:
29                - "Closed"
30                - "Done"

Simply prepend the lines 20-24 before defining the checks you want to be executed for the related work items (children) of all of the items, fetched by the query of the file. Starting from line 25, you can define your desired checks, following the same principle as for the “regular” checks.

Resources#

Find the full file, containing the code snippets here: