PHP Classes

Kanboard Subtask Date: Kanboard plugin to add due date to sub-tasks

Recommend this page to a friend!
  Info   Documentation   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 17 All time: 11,338 This week: 455Up
Version License PHP version Categories
subtaskdate 1.0The PHP License5PHP 5, Libraries, Project Management
Description 

Author

This package is a Kanboard plugin to add due date to sub-tasks.

It can add a field to sub-tasks managed by the Kanboard project management application, so the users can set a due date for the sub-tasks.

The plugin can also add a calendar of events for sub-tasks to user and project calendars.

Picture of kiran
  Performance   Level  
Name: kiran <contact>
Classes: 8 packages by
Country: United States United States
Age: ???
All time rank: 4310546 in United States United States
Week rank: 180 Up22 in United States United States Up

Documentation

SubTask Due Date

  • Adds a new due date field for subtasks.
  • Adds Calendar Events for Subtasks to User and Project Calendars.
  • Adds API Procedures for subtask due date field, createSubtaskdd & updateSubtaskdd
  • Adds filter `subtask_due` - Chain-able, i.e. `subtask_due:today subtask:assignee:name` will filter for subtasks due `today`, assigned to `name`

Filter

Search by the due date

Attribute: subtask_due

  • Search tasks due today: ``subtask_due:today``
  • Search tasks due tomorrow: ``subtask_due:tomorrow``
  • Search tasks due yesterday: ``subtask_due:yesterday``
  • Search tasks due with the exact date: ``subtask_due:2015-06-29``
  • Search tasks without a due date: ``subtask_due:none``

The date must use the ISO 8601 format: YYYY-MM-DD.

All string formats supported by the `strtotime()` function are supported, for example `next Thursday,-2 days,+2 months`, `tomorrow`, etc.

Operators supported with a date:

  • Greater than: subtask_due:>2015-06-29
  • Lower than: subtask_due:<2015-06-29
  • Greater than or equal: subtask_due:>=2015-06-29
  • Lower than or equal: subtask_due:<=2015-06-29

API

createSubtaskdd

  • Purpose: Create a new subtask
  • Parameters:

    - task_id (integer, required) - title (integer, required) - user_id (int, optional) - time_estimated (int, optional) - time_spent (int, optional) - status (int, optional) - due_date (int, optional)

  • Result on success: subtask_id
  • Result on failure: false

Request example:

{
    "jsonrpc": "2.0",
    "method": "createSubtaskdd",
    "id": 2041554661,
    "params": {
        "task_id": 1,
        "title": "Subtask #1",
        "due_date": 1523998125
    }
}

Response example:

{
    "jsonrpc": "2.0",
    "id": 2041554661,
    "result": 45
}

updateSubtaskdd

  • Purpose: Update a subtask
  • Parameters:

    - id (integer, required) - task_id (integer, required) - title (integer, optional) - user_id (integer, optional) - time_estimated (integer, optional) - time_spent (integer, optional) - status (integer, optional) - due_date (int, optional)

  • Result on success: true
  • Result on failure: false

Request example:

.. code:: json

{
    "jsonrpc": "2.0",
    "method": "updateSubtaskdd",
    "id": 191749979,
    "params": {
        "id": 1,
        "task_id": 1,
        "status": 1,
        "time_spent": 5,
        "user_id": 1,
        "due_date": 1523998125
    }
}

Response example:

.. code:: json

{
    "jsonrpc": "2.0",
    "id": 191749979,
    "result": true
}

Authors

  • Manuel Raposo / Craig Crosby
  • License MIT

Requirements

  • Kanboard >= 1.0.34
  • PHP >= 5.3.3

PS: _(This is automatic for Subtaskdate versions >= 1.1.1)_ - Commented dashboard hook to work with versions >=1.0.41, if you are using a version prior to that, just uncomment lines 33 and 34

Installation

You have the choice between 3 methods:

  1. Install the plugin from the Kanboard plugin manager in one click (not yet)
  2. Download the zip file and decompress everything under the directory `plugins/Subtaskdate`
  3. Clone this repository into the folder `plugins/Subtaskdate`

Note: Plugin folder is case-sensitive.


  Files folder image Files (13)  
File Role Description
Files folder imageApi (1 directory)
Files folder imageFilter (1 file)
Files folder imageModel (1 file)
Files folder imageSchema (3 files)
Files folder imageTemplate (1 directory)
Files folder imageTest (1 file)
Accessible without login Plain text file Makefile Data Auxiliary data
Plain text file Plugin.php Class Class source
Accessible without login Plain text file README.md Doc. Documentation

  Files folder image Files (13)  /  Api  
File Role Description
Files folder imageProcedure (1 file)

  Files folder image Files (13)  /  Api  /  Procedure  
File Role Description
  Plain text file NewSubtaskProcedure.php Class Class source

  Files folder image Files (13)  /  Filter  
File Role Description
  Plain text file SubTaskDueDateFilter.php Class Class source

  Files folder image Files (13)  /  Model  
File Role Description
  Plain text file SubtaskCalendarModel.php Class Class source

  Files folder image Files (13)  /  Schema  
File Role Description
  Accessible without login Plain text file Mysql.php Example Example script
  Accessible without login Plain text file Postgres.php Example Example script
  Accessible without login Plain text file Sqlite.php Example Example script

  Files folder image Files (13)  /  Template  
File Role Description
Files folder imagesubtask (3 files)

  Files folder image Files (13)  /  Template  /  subtask  
File Role Description
  Accessible without login Plain text file form.php Example Example script
  Accessible without login Plain text file table_header.php Example Example script
  Accessible without login Plain text file table_rows.php Example Example script

  Files folder image Files (13)  /  Test  
File Role Description
  Plain text file PluginTest.php Class Class source

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 100%
Total:17
This week:0
All time:11,338
This week:455Up