stable

Clone or download

Read-only

Enable transition backend *advanced configuration*

Part of story #12187 configure workflow pre & post actions at target state level How to test: use api explorer to call POST /tracker_workflo_transitions. Check if transition is saved in DB. API returns the new transition ID and URI. Source id 0 is authorized for new artefact. --> 201 when success --> 404 error if tracker does not exist --> 404 error if there is no workflow with field_id --> 400 error if transition already exists --> 404 error if field value does not exist --> 400 error if source and destination are same id Change-Id: I4cc4b07521434f3751898221cd39da1c8a19b72e

Modified Files

Name
M plugins/tracker/include/REST/ResourcesInjector.class.php +7 −4 Go to diff View file
A plugins/tracker/include/REST/WorkflowTransitionPOSTRepresentation.class.php +48 −0 Go to diff View file
A plugins/tracker/include/REST/v1/TrackerWorkflowTransitionsResource.class.php +215 −0 Go to diff View file
M plugins/tracker/include/workflow/TransitionFactory.class.php +109 −65 Go to diff View file
M plugins/tracker/site-content/fr_FR/LC_MESSAGES/tuleap-tracker.po +18 −1 Go to diff View file
M plugins/tracker/site-content/tuleap-tracker.pot +15 −0 Go to diff View file
M plugins/tracker/tests/rest/TrackerBase.php +67 −12 Go to diff View file
A plugins/tracker/tests/rest/Workflows/TrackerWorkflowTransitionsTest.php +215 −0 Go to diff View file
M plugins/tracker/tests/rest/_fixtures/Workflows/project.xml +662 −0 Go to diff View file