stable

Clone or download

Read-only

create GET /tracker_workflow_transitions/:id/actions

Part of story #12187 configure workflow pre & post actions at target state level How to test: - Call /tracker_workflow_transitions/:id/actions with Api Explorer ---> 200 ---> All actions are returned (run job or set int/float/date field) - if transition id not exist ---> 404 - if not authenticated ---> 401 - if not authorized ---> 403 Change-Id: I6b721c7c0a73b811729cf7c36d1511818ef6eea3

Modified Files

Name
A plugins/tracker/include/REST/v1/Workflow/PostAction/PostActionsRepresentationBuilder.php +92 −0 Go to diff View file
A plugins/tracker/include/REST/v1/Workflow/PostAction/RunJobRepresentation.php +49 −0 Go to diff View file
A plugins/tracker/include/REST/v1/Workflow/PostAction/SetFieldValueRepresentation.php +91 −0 Go to diff View file
M plugins/tracker/include/REST/v1/Workflow/TransitionsPermissionsChecker.php +1 −0 Go to diff View file
M plugins/tracker/include/REST/v1/Workflow/TransitionsResource.class.php +62 −5 Go to diff View file
M plugins/tracker/include/workflow/PostAction/CIBuild/Transition_PostAction_CIBuild.class.php +9 −1 Go to diff View file
M plugins/tracker/include/workflow/PostAction/Field/Transition_PostAction_Field_Date.class.php +7 −0 Go to diff View file
M plugins/tracker/include/workflow/PostAction/Field/Transition_PostAction_Field_Float.class.php +11 −2 Go to diff View file
M plugins/tracker/include/workflow/PostAction/Field/Transition_PostAction_Field_Int.class.php +9 −1 Go to diff View file
M plugins/tracker/include/workflow/PostAction/Transition_PostAction.class.php +6 −1 Go to diff View file
A plugins/tracker/include/workflow/PostAction/Visitor.php +36 −0 Go to diff View file
A plugins/tracker/phpunit/REST/v1/Workflow/PostAction/PostActionsRepresentationBuilderTest.php +128 −0 Go to diff View file
M plugins/tracker/tests/rest/Workflows/TrackerWorkflowTransitionsTest.php +13 −1 Go to diff View file