https://github.com/thomastjdev/kanboardsubtasksboard
Kanboard plugin - Show subtasks on main board without hovering over subtask-icon
https://github.com/thomastjdev/kanboardsubtasksboard
Last synced: about 1 year ago
JSON representation
Kanboard plugin - Show subtasks on main board without hovering over subtask-icon
- Host: GitHub
- URL: https://github.com/thomastjdev/kanboardsubtasksboard
- Owner: ThomasTJdev
- Created: 2017-01-21T20:17:47.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-09-01T14:16:05.000Z (over 8 years ago)
- Last Synced: 2025-04-12T00:42:51.012Z (about 1 year ago)
- Language: PHP
- Homepage:
- Size: 31.3 KB
- Stars: 8
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Not maintained
# Show subtasks below tasks on main board
This will render the subtasks on board.

## Todo
Subtasks "disappear" when moving tasks.
## How to
#### Prerequisites
Clone this repo into the **kanboard/Plugins**.
`git clone`
Optional:
Use this plugin [KanboardCSS](https://gitlab.com/ThomasTJ/KanboardCSS)
#### Step 1
Add the following to **Controller/BoardViewController** in the function `show()`:
`$subtasksAll = $this->kanboardSubtasksBoardModel->KanboardSubtasksBoardGetAll($project);`
`'subtasks' => $subtasksAll,`
It should then look like this (snippet):
```PHP
getProject();
$search = $this->helper->projectHeader->getSearchQuery($project);
$subtasksAll = $this->kanboardSubtasksBoardModel->KanboardSubtasksBoardGetAll($project); // Code 1
$this->response->html($this->helper->layout->app('board/view_private', array(
'subtasks' => $subtasksAll, // Code 2
'project' => $project,
'title' => $project['name'],
'description' => $this->helper->projectHeader->getDescription($project),
'board_private_refresh_interval' => $this->configModel->get('board_private_refresh_interval'),
'board_highlight_period' => $this->configModel->get('board_highlight_period'),
'swimlanes' => $this->taskLexer
->build($search)
->format(BoardFormatter::getInstance($this->container)->withProjectId($project['id']))
)));
}
?>
```
#### Step 2
Add the following to ***view_private.php***:
`'subtasks' => $subtasks,`
It should look like this:
```PHP
= $this->projectHeader->render($project, 'BoardViewController', 'show', true) ?>
= $this->render('board/table_container', array(
'subtasks' => $subtasks,
'project' => $project,
'swimlanes' => $swimlanes,
'board_private_refresh_interval' => $board_private_refresh_interval,
'board_highlight_period' => $board_highlight_period,
)) ?>
```
#### Step 3
Add the following to **table_container.php**:
`'subtasks' => $subtasks,`
It should look like this (snippet):
```PHP
= $this->render('board/table_tasks', array(
'subtasks' => $subtasks,
'project' => $project,
'swimlane' => $swimlane,
'not_editable' => isset($not_editable),
'board_highlight_period' => $board_highlight_period,
)) ?>
```
#### Step 4
Add the following to **table_tasks.php**:
`'subtasks' => $subtasks,`
It should look like this (snippet):
```PHP
= $this->render($not_editable ? 'board/task_public' : 'board/task_private', array(
'subtasks' => $subtasks,
'project' => $project,
'task' => $task,
'board_highlight_period' => $board_highlight_period,
'not_editable' => $not_editable,
)) ?>
```
#### Step 5
Add the following in **task_private.php**:
`'subtasks' => $subtasks,`
It should look like this (snippet):
```PHP
= $this->render('board/task_footer', array(
'subtasks' => $subtasks,
'task' => $task,
'not_editable' => $not_editable,
'project' => $project,
)) ?>
```
#### Step 6
Make the following changes in **task_footer.php**:
Insert the code right above this:
`= $this->hook->render('template:board:task:icons', array('task' => $task)) ?>`
Code:
```PHP
```