-
Sub-task
-
Resolution: Fixed
-
L3 - Default
-
None
-
Not defined
For the goal setting modal, we would need to present the current success/failure of the goals being set. For this, we need a new endpoint to evaluate the goals specified.
Request:
POST /api/process/{processDefinitionKey}/goals/evaluate |
Request:
[ {type: 'targetDuration', percentile: '75' , value: '5', unit: 'days' }, {type: 'slaDuration', percentile: '99' , value: '5', unit: 'days' } ] |
Response:
[ {}{"type": "targetDuration", "value": 43243242342, "successful": true}, {}{"type": "slaDuration", "value": 213123123, "successful": false} ] |
200 - OK: Goals evaluated 400 - Bad Request: The parameters are invalid 404 - Not Found: the process definition does not exist 401 - Unauthorized |