stable
Clone or download
Read-only
Part of story #12187 configure workflow pre & post actions at target state level How to test: get a transition from following url: GET /api/tracker_workflow_transitions/{id} --> 200 --> Authorized use groups are returned by ids --> Not empty fields are returned by ids --> Id, from_id, to_id and is_comment_required attributes are returned --> 404 when given id does not match with any transition --> 401 when not authenticated --> 403 when not authorized (when user cannot access transition's project) Change-Id: Ief8941f3af684db71a6513cb078b9c6690faa229
Modified Files
Name | ||||
---|---|---|---|---|
A | plugins/tracker/include/REST/v1/Workflow/TransitionRepresentation.php | +80 | −0 | Go to diff View file |
A | plugins/tracker/include/REST/v1/Workflow/TransitionRepresentationBuilder.php | +119 | −0 | Go to diff View file |
M | plugins/tracker/include/REST/v1/Workflow/TransitionsPermissionsChecker.php | +18 | −0 | Go to diff View file |
M | plugins/tracker/include/REST/v1/Workflow/TransitionsResource.class.php | +49 | −1 | Go to diff View file |
M | plugins/tracker/include/workflow/Transition/Condition.class.php | +4 | −0 | Go to diff View file |
M | plugins/tracker/include/workflow/Transition/Condition/CommentNotEmpty.class.php | +16 | −1 | Go to diff View file |
M | plugins/tracker/include/workflow/Transition/Condition/FieldNotEmpty.class.php | +10 | −2 | Go to diff View file |
M | plugins/tracker/include/workflow/Transition/Condition/Permissions.class.php | +36 | −8 | Go to diff View file |
A | plugins/tracker/include/workflow/Transition/Condition/Visitor.php | +31 | −0 | Go to diff View file |
M | plugins/tracker/tests/rest/Workflows/TrackerWorkflowTransitionsTest.php | +18 | −0 | Go to diff View file |
M | plugins/tracker/www/scripts/TrackerArtifactEditionSwitcher.js | +12 | −9 | Go to diff View file |
M | src/common/REST/Header.class.php | +5 | −1 | Go to diff View file |
M | src/common/REST/JsonCast.class.php | +13 | −0 | Go to diff View file |
A | tests/phpunit/common/REST/JsonCastTest.php | +47 | −0 | Go to diff View file |