hook->on('controller:task-creation:form:default', function($values) use($container) { $user = $container->userSession->getId(); return array('owner_id' => $user); }); } public function onStartup() { } public function getPluginName() { return 'DefaultSelfAssign'; } public function getPluginDescription() { return 'Self-assign tasks by default'; } public function getPluginAuthor() { return 'mkl'; } public function getPluginVersion() { return '1.0.0'; } public function getPluginHomepage() { return 'https://kanban.intranet/'; } public function getClasses() { return array(); } }