creecros / Group_assign

Kanboard Plugin to Assign Tasks to Groups and multiple users
MIT License
61 stars 23 forks source link

allassignees:nobody (campared to standard assignee:nobody) #52

Closed TimoStahl closed 4 years ago

TimoStahl commented 4 years ago

Hi @creecros,

There is a standard filter assignee:nobody which displays all task without assignee.

Maybe this would a nice addition for this plugin allassignees:nobody (no group or other asssignee).

Regards, Timo

creecros commented 4 years ago

@BlueTeck should be easy enough: https://github.com/creecros/Group_assign/blob/0ac70ea65b246b1663ee46d6743cc12484869cc4/Filter/TaskAllAssigneeFilter.php#L93

add the lines:

$this->query->eq(TaskModel::TABLE.'.owner_gp', 0);
$this->query->eq(TaskModel::TABLE.'.owner_ms', 0);

should do it? My server is offline so I can't test today.

TimoStahl commented 4 years ago

Changed and tested :)