Help & Support
Follow

LeanKit API: Get All Task Cards on a Taskboard

This method returns all the Task Cards on a given Card's Taskboard. Unlike Get Taskboard, it only the Task Cards without the board information.

Request URL (GET):

https://{accountname}.leankit.com/kanban/api/v1/board/{boardId}/card/{cardId}/tasks

Sample request:

https://myaccount.leankit.com/kanban/api/v1/board/256064019/card/256501042/tasks 

Sample response:

{
  "ReplyData": [
    [
      {
        "SystemType": "Card",
        "BoardId": 256064019,
        "BoardTitle": "Sample Board",
        "LaneId": 256485507,
        "LaneTitle": "ToDo",
        "Title": "Task 1",
        "Description": null,
        "Type": {
          "Id": 256291537
        },
        "TypeId": 256291537,
        "Priority": 1,
        "PriorityText": "Normal",
        "TypeName": "Subtask",
        "TypeIconPath": null,
        "TypeColorHex": "#F8F7D2",
        "Size": 0,
        "Active": false,
        "Color": "#F8F7D2",
        "Icon": "",
        "Version": 2,
        "AssignedUsers": [],
        "IsBlocked": false,
        "BlockReason": null,
        "BlockStateChangeDate": null,
        "Index": 0,
        "StartDate": null,
        "DueDate": null,
        "ExternalSystemName": null,
        "ExternalSystemUrl": null,
        "ExternalCardID": null,
        "ExternalCardIdPrefix": null,
        "Tags": null,
        "ParentBoardId": 0,
        "ParentTaskboardId": 256422779,
        "CountOfOldCards": 0,
        "CardContexts": [],
        "LastMove": "10/14/2015 04:52:11 PM",
        "LastActivity": "10/14/2015 04:52:11 PM",
        "DateArchived": null,
        "CommentsCount": 0,
        "LastComment": null,
        "AttachmentsCount": 0,
        "LastAttachment": null,
        "CreateDate": "10/14/2015",
        "ActualStartDate": "10/14/2015 8:51:51 PM",
        "ActualFinishDate": null,
        "AssignedUserName": "",
        "AssignedUserId": 0,
        "AssignedUserIds": [],
        "GravatarLink": "",
        "SmallGravatarLink": "",
        "IsOlderThanXDays": false,
        "Id": 256501044,
        "DrillThroughBoardId": null,
        "HasDrillThroughBoard": false,
        "DrillThroughStatistics": null,
        "DrillThroughCompletionPercent": null,
        "DrillThroughProgressTotal": null,
        "DrillThroughProgressComplete": null,
        "DrillThroughProgressSizeComplete": null,
        "DrillThroughProgressSizeTotal": null,
        "ClassOfServiceId": 0,
        "ClassOfServiceTitle": null,
        "ClassOfServiceIconPath": null,
        "ClassOfServiceColorHex": null,
        "ClassOfServiceCustomIconName": null,
        "ClassOfServiceCustomIconColor": null,
        "CardTypeIconColor": null,
        "CardTypeIconName": null,
        "CurrentTaskBoardId": null,
        "TaskBoardCompletionPercent": 0,
        "TaskBoardCompletedCardCount": 0,
        "TaskBoardCompletedCardSize": 0,
        "TaskBoardTotalCards": 0,
        "TaskBoardTotalSize": 0,
        "CurrentContext": null,
        "ParentCardId": null
      },
      {
        "SystemType": "Card",
        "BoardId": 256064019,
        "BoardTitle": "Sample Board",
        "LaneId": 256485508,
        "LaneTitle": "Doing",
        "Title": "Task 2",
        "Description": null,
        "Type": {
          "Id": 256291537
        },
        "TypeId": 256291537,
        "Priority": 1,
        "PriorityText": "Normal",
        "TypeName": "Subtask",
        "TypeIconPath": null,
        "TypeColorHex": "#F8F7D2",
        "Size": 0,
        "Active": false,
        "Color": "#F8F7D2",
        "Icon": "",
        "Version": 3,
        "AssignedUsers": [],
        "IsBlocked": false,
        "BlockReason": null,
        "BlockStateChangeDate": null,
        "Index": 0,
        "StartDate": null,
        "DueDate": null,
        "ExternalSystemName": null,
        "ExternalSystemUrl": null,
        "ExternalCardID": null,
        "ExternalCardIdPrefix": null,
        "Tags": null,
        "ParentBoardId": 0,
        "ParentTaskboardId": 256422779,
        "CountOfOldCards": 0,
        "CardContexts": [],
        "LastMove": "10/14/2015 04:54:58 PM",
        "LastActivity": "10/14/2015 04:54:58 PM",
        "DateArchived": null,
        "CommentsCount": 0,
        "LastComment": null,
        "AttachmentsCount": 0,
        "LastAttachment": null,
        "CreateDate": "10/14/2015",
        "ActualStartDate": "10/14/2015 8:51:51 PM",
        "ActualFinishDate": null,
        "AssignedUserName": "",
        "AssignedUserId": 0,
        "AssignedUserIds": [],
        "GravatarLink": "",
        "SmallGravatarLink": "",
        "IsOlderThanXDays": false,
        "Id": 256490982,
        "DrillThroughBoardId": null,
        "HasDrillThroughBoard": false,
        "DrillThroughStatistics": null,
        "DrillThroughCompletionPercent": null,
        "DrillThroughProgressTotal": null,
        "DrillThroughProgressComplete": null,
        "DrillThroughProgressSizeComplete": null,
        "DrillThroughProgressSizeTotal": null,
        "ClassOfServiceId": 0,
        "ClassOfServiceTitle": null,
        "ClassOfServiceIconPath": null,
        "ClassOfServiceColorHex": null,
        "ClassOfServiceCustomIconName": null,
        "ClassOfServiceCustomIconColor": null,
        "CardTypeIconColor": null,
        "CardTypeIconName": null,
        "CurrentTaskBoardId": null,
        "TaskBoardCompletionPercent": 0,
        "TaskBoardCompletedCardCount": 0,
        "TaskBoardCompletedCardSize": 0,
        "TaskBoardTotalCards": 0,
        "TaskBoardTotalSize": 0,
        "CurrentContext": null,
        "ParentCardId": null
      }
    ]
  ],
  "ReplyCode": 200,
  "ReplyText": "Tasks successfully retrieved."
}

 

 

 

 

 

 

Doc ID: 1191979669

Have more questions? Submit a request