Developers
Planning API (Tickets)
- Cloud and self-hosted
Plans a to-do for a day: the day someone chose to work on it, which they can move any time.
leantime.rpc.Tickets.Planning.
Available Methods
Section titled “Available Methods”leantime.rpc.Tickets.Planning.planTaskForDay
Section titled “leantime.rpc.Tickets.Planning.planTaskForDay”Plans a to-do for a day, replacing an earlier date-only plan.
{ "method": "leantime.rpc.Tickets.Planning.planTaskForDay", "jsonrpc": "2.0", "id": 1, "params": { "taskId": int, "date": string, }}Parameters:
| Parameter | Type | Description |
|---|---|---|
taskId |
int | The to-do. |
date |
string | The day, as YYYY-MM-DD in your own timezone. |
Returns:
{ "jsonrpc": "2.0", "id": 1, "result": array{taskId: int, date: string}}leantime.rpc.Tickets.Planning.clearTaskPlan
Section titled “leantime.rpc.Tickets.Planning.clearTaskPlan”Clears a to-do’s plan. A to-do with no plan is fine; one with a set time is left alone.
{ "method": "leantime.rpc.Tickets.Planning.clearTaskPlan", "jsonrpc": "2.0", "id": 1, "params": { "taskId": int, }}Parameters:
| Parameter | Type | Description |
|---|---|---|
taskId |
int | The to-do. |
Returns: True once the to-do has no date-only plan.
{ "jsonrpc": "2.0", "id": 1, "result": bool}leantime.rpc.Tickets.Planning.getTaskPlan
Section titled “leantime.rpc.Tickets.Planning.getTaskPlan”The days a to-do is planned for, in your own timezone. Empty when it has no Work Start.
{ "method": "leantime.rpc.Tickets.Planning.getTaskPlan", "jsonrpc": "2.0", "id": 1, "params": { "taskId": int, }}Parameters:
| Parameter | Type | Description |
|---|---|---|
taskId |
int | The to-do. |
Returns:
{ "jsonrpc": "2.0", "id": 1, "result": array{taskId: int, days: list<string>, timeBoxed: bool}}Was this page helpful?
Thanks, glad it helped.
Thanks for telling us. What was missing?
