stable

Clone or download

Read-only

Import frozen fields action from XML simple workflow

This is part of story #13243 Import/export workflow simple mode via XML A simple workflow can now be imported with frozen fields action in state. The actions can be imported like: <simple_workflow> <field_id REF="F42704"/> <is_used>1</is_used> <states> <state> <to_id REF="V36863"/> <transitions> <transition> <from_id REF="null"/> </transition> <transition> <from_id REF="V36864"/> </transition> </transitions> <postactions> <postaction_field_date valuetype="2"> <field_id REF="F42705"/> </postaction_field_date> <postaction_frozen_fields> <field_id REF="F42708"/> </postaction_frozen_fields> </postactions> </state> </states> </simple_workflow> Change-Id: If31c794f2b7a747176d81d7e5bf4cab8aa1d303b

Modified Files

Name
M plugins/tracker/include/Workflow/PostAction/FrozenFields/FrozenFields.php +2 −1 Go to diff View file
M plugins/tracker/include/Workflow/PostAction/FrozenFields/FrozenFieldsFactory.php +18 −3 Go to diff View file
M plugins/tracker/include/Workflow/PostAction/Transition_PostActionFactory.class.php +17 −1 Go to diff View file
M plugins/tracker/include/Workflow/TransitionFactory.class.php +3 −3 Go to diff View file
M plugins/tracker/phpunit/Tracker/Workflow/PostAction/FrozenFields/FrozenFieldsFactoryTest.php +55 −0 Go to diff View file
M plugins/tracker/tests/rest/Workflows/SimpleModeTest.php +1 −1 Go to diff View file
M plugins/tracker/tests/rest/_fixtures/Workflows/project.xml +3 −0 Go to diff View file
M plugins/tracker/www/resources/workflow.rnc +39 −24 Go to diff View file
M plugins/tracker/www/resources/workflow.rng +70 −46 Go to diff View file
M src/common/xml/resources/project/workflow.rng +70 −46 Go to diff View file