stable

Clone or download

Read-only

Create hidden fieldsets post action via POST tracker_workflow_transitions/:id/actions

This is part of story #12188 hide fieldsets according to state You can create hidden fieldsets post action via REST. Here is an exemple of the Json that can be used in the REST route: { "id": null, "type": "hidden_fieldsets", "fieldset_ids": [ 698,714 ] } To have this working, the feature flag $sys_should_use_hidden_fieldsets_post_actions must be set to 1 in the local.inc file or in database. Change-Id: I20a75302ada32b551e86b2cf1a5f7df8ece49bc0

Modified Files

Name
A plugins/tracker/include/REST/v1/Workflow/PostAction/Update/HiddenFieldsetsJsonParser.php +88 −0 Go to diff View file
M plugins/tracker/include/REST/v1/Workflow/TransitionsResource.class.php +12 −0 Go to diff View file
A plugins/tracker/phpunit/REST/v1/Workflow/PostAction/Update/HiddenFieldsetsJsonParserTest.php +191 −0 Go to diff View file
M plugins/tracker/site-content/fr_FR/LC_MESSAGES/tuleap-tracker.po +14 −0 Go to diff View file
M plugins/tracker/tests/rest/Workflows/SimpleModeTest.php +54 −0 Go to diff View file
M plugins/tracker/tests/rest/Workflows/TrackerWorkflowTransitionsTest.php +32 −0 Go to diff View file
M plugins/tracker/tests/rest/_fixtures/Workflows/project.xml +14 −1 Go to diff View file
A plugins/tracker/tests/rest/setup.sh +3 −0 Go to diff View file