-
Sub-task
-
Resolution: Done
-
L3 - Default
-
None
-
Not defined
Context:
Given the changed report structure, allowing multiple view.properties, configuration.aggregationTypes & configuration.userTaskDurationTimes added with OPT-4825 a new response structure is required to return the multi measures as part of one report evaluation.
AT:
- for the single report evaliation response structures the result.data is renamed to result.measures
- result.measures is always an array of objects:
[{ property: 'duration', // copied from the view.property array, aggregationType: 'min', // copied from configuration, could be null userTaskDurationTime: 'work' // copied from configuration, could be null data: // previous result.data }, ...]
- although the structure supports multiple results, only one result is returned for now regardless of the config (only first view.property, aggregationType and userTaskDuration is considered), multi measures are to be returned with a folllow-up change
- REST API documentation in Confluence is updated