stable

Clone or download

Read-only

A transition cannot occurs if a follow-up comment is not provided

story #9096 Define comment as mandatory in a tracker workflow transition * A tracker administrator is able to set a comment as mandatory for a given transition in the same screen where he is able to set fields as mandatory. * This information is taken into account in XML import and export. * This information is duplicated on project creation and on tracker creation with template. * It is not possible to set a mandatory comment for a new artifact. Change-Id: I1938b9f7171c3f42414e620430a12ce79fe15eb8

Modified Files

Name
M plugins/tracker/db/install.sql +6 −0 Go to diff View file
A plugins/tracker/db/mysql/updates/2016/201608041550_create_condition_comment_not_empty.php +50 −0 Go to diff View file
M plugins/tracker/db/uninstall.sql +1 −0 Go to diff View file
M plugins/tracker/include/Tracker/Artifact/Changeset/NewChangesetCreatorBase.class.php +1 −1 Go to diff View file
M plugins/tracker/include/autoload.php +5 −2 Go to diff View file
M plugins/tracker/include/workflow/Transition.class.php +2 −2 Go to diff View file
M plugins/tracker/include/workflow/Transition/Condition.class.php +1 −1 Go to diff View file
A plugins/tracker/include/workflow/Transition/Condition/CommentNotEmpty.class.php +112 −0 Go to diff View file
A plugins/tracker/include/workflow/Transition/Condition/CommentNotEmpty/Dao.class.php +68 −0 Go to diff View file
A plugins/tracker/include/workflow/Transition/Condition/CommentNotEmpty/Factory.class.php +60 −0 Go to diff View file
M plugins/tracker/include/workflow/Transition/Condition/FieldNotEmpty.class.php +1 −1 Go to diff View file
M plugins/tracker/include/workflow/Transition/Condition/Permissions.class.php +1 −1 Go to diff View file
M plugins/tracker/include/workflow/Transition/ConditionFactory.class.php +26 −8 Go to diff View file
M plugins/tracker/include/workflow/Transition/ConditionManager.class.php +3 −2 Go to diff View file
M plugins/tracker/include/workflow/Transition/ConditionsCollection.class.php +8 −3 Go to diff View file
M plugins/tracker/include/workflow/Workflow.class.php +2 −2 Go to diff View file
M plugins/tracker/site-content/en_US/tracker.tab +1 −0 Go to diff View file
M plugins/tracker/site-content/fr_FR/tracker.tab +1 −0 Go to diff View file
A plugins/tracker/tests/workflow/Transition/Condition/CommentNotEmptyTest.php +72 −0 Go to diff View file
M plugins/tracker/tests/workflow/Transition/Condition/FieldNotEmptyTest.php +10 −10 Go to diff View file
M plugins/tracker/tests/workflow/Transition/ConditionFactoryTest.php +10 −4 Go to diff View file
M plugins/tracker/tests/workflow/TransitionTest.php +2 −2 Go to diff View file
M plugins/tracker/tests/workflow/WorkflowTest.php +4 −4 Go to diff View file
M plugins/tracker/www/resources/tracker-definition.rnc +4 −0 Go to diff View file
M plugins/tracker/www/resources/tracker-definition.rng +13 −0 Go to diff View file
M plugins/tracker/www/themes/default/css/style.scss +13 −0 Go to diff View file
M src/common/xml/resources/project/tracker-definition.rng +13 −0 Go to diff View file