Help & Support
Follow

LeanKit API (v1): Get a Board's Recently Archived Cards

This method retrieves a Board's recently archived Cards, excluding the cards in the cabinet archive.  (By default, the cabinet archive stores cards archived more than 14 days.)  However, the results will always include reference to the cabinet Card, identified as SystemType: "GhostCard".

Request URL (GET):

https://{accountname}.leankit.com/kanban/api/board/{boardId}/archivecards

Sample request:

https://myaccount.leankit.com/kanban/api/board/256064019/archivecards

Sample response:

{
  "ReplyData": [
    [
      {
        "SystemType": "Card",
        "LaneId": 163475140,
        "Title": "Sample Archived Card",
        "Description": "",
        "Type": {
          "Id": 163454418
        },
        "TypeId": 163454418,
        "Priority": 1,
        "PriorityText": "Normal",
        "TypeName": "Task",
        "TypeIconPath": "../../Content/Images/Icons/Library/help.png",
        "TypeColorHex": "#f5f2bc",
        "Size": 0,
        "Active": false,
        "Color": "#f5f2bc",
        "Version": 208,
        "AssignedUsers": [],
        "CardDrillThroughBoards": [],
        "CardContexts": null,
        "IsBlocked": false,
        "BlockReason": "",
        "BlockStateChangeDate": "",
        "Index": 5,
        "DueDate": "",
        "StartDate": "",
        "ExternalSystemName": "",
        "ExternalSystemUrl": "",
        "ExternalCardID": "",
        "Tags": "import",
        "CountOfOldCards": 0,
        "LastMove": "05/18/2016 01:59:41 PM",
        "LastActivity": "05/18/2016 01:59:41 PM",
        "DateArchived": "05/18/2016",
        "LastComment": "",
        "CommentsCount": 0,
        "LastAttachment": "03/30/2015",
        "AttachmentsCount": 1,
        "AssignedUserName": "David Neal",
        "AssignedUserId": 162984826,
        "AssignedUserIds": [
          162984826
        ],
        "GravatarLink": "3ab1249be442027903e1180025340b3f?s=25",
        "SmallGravatarLink": "3ab1249be442027903e1180025340b3f?s=17",
        "CardDrillThroughBoardIds": [],
        "Id": 184067527,
        "DrillThroughBoardId": null,
        "HasDrillThroughBoard": false,
        "HasMultipleDrillThroughBoards": false,
        "DrillThroughStatistics": null,
        "DrillThroughCompletionPercent": null,
        "DrillThroughProgressTotal": null,
        "DrillThroughProgressComplete": null,
        "DrillThroughProgressSizeComplete": null,
        "DrillThroughProgressSizeTotal": null,
        "ClassOfServiceId": 0,
        "ClassOfServiceTitle": "",
        "ClassOfServiceIconPath": "",
        "ClassOfServiceColorHex": "",
        "ClassOfServiceCustomIconName": null,
        "ClassOfServiceCustomIconColor": null,
        "CardTypeIconColor": null,
        "CardTypeIconName": null,
        "CurrentTaskBoardId": null,
        "TaskBoardCompletionPercent": null,
        "TaskBoardCompletedCardCount": 0,
        "TaskBoardCompletedCardSize": 0,
        "TaskBoardTotalCards": null,
        "TaskBoardTotalSize": null,
        "CurrentContext": null,
        "ParentCardId": null,
        "ParentCardIds": []
      },
      {
        "SystemType": "GhostCard",
        "LaneId": 163475140,
        "Title": "cards older than 14 days.\n\nClick to view.",
        "Description": null,
        "Type": null,
        "TypeId": 0,
        "Priority": 1,
        "PriorityText": "Normal",
        "TypeName": "Cabinet Card",
        "TypeIconPath": null,
        "TypeColorHex": "#DDDDDD",
        "Size": 0,
        "Active": false,
        "Color": "#DDDDDD",
        "Version": 0,
        "AssignedUsers": [],
        "CardDrillThroughBoards": [],
        "CardContexts": null,
        "IsBlocked": false,
        "BlockReason": null,
        "BlockStateChangeDate": null,
        "Index": 10000,
        "DueDate": "",
        "StartDate": "",
        "ExternalSystemName": null,
        "ExternalSystemUrl": null,
        "ExternalCardID": null,
        "Tags": "",
        "CountOfOldCards": 5,
        "LastMove": null,
        "LastActivity": null,
        "DateArchived": null,
        "LastComment": null,
        "CommentsCount": 0,
        "LastAttachment": null,
        "AttachmentsCount": 0,
        "AssignedUserName": "",
        "AssignedUserId": 0,
        "AssignedUserIds": [],
        "GravatarLink": "",
        "SmallGravatarLink": "",
        "CardDrillThroughBoardIds": [],
        "Id": -63475140,
        "DrillThroughBoardId": null,
        "HasDrillThroughBoard": false,
        "HasMultipleDrillThroughBoards": false,
        "DrillThroughStatistics": null,
        "DrillThroughCompletionPercent": null,
        "DrillThroughProgressTotal": null,
        "DrillThroughProgressComplete": null,
        "DrillThroughProgressSizeComplete": null,
        "DrillThroughProgressSizeTotal": null,
        "ClassOfServiceId": 0,
        "ClassOfServiceTitle": "Cabinet Card",
        "ClassOfServiceIconPath": null,
        "ClassOfServiceColorHex": "#DDDDDD",
        "ClassOfServiceCustomIconName": null,
        "ClassOfServiceCustomIconColor": null,
        "CardTypeIconColor": null,
        "CardTypeIconName": null,
        "CurrentTaskBoardId": null,
        "TaskBoardCompletionPercent": null,
        "TaskBoardCompletedCardCount": 0,
        "TaskBoardCompletedCardSize": 0,
        "TaskBoardTotalCards": null,
        "TaskBoardTotalSize": null,
        "CurrentContext": null,
        "ParentCardId": null,
        "ParentCardIds": []
      }
    ]
  ],
  "ReplyCode": 200,
  "ReplyText": "Archive Cards successfully retrieved."
}

 

 

 

 

 

 

 

Doc ID: 1191979667

Have more questions? Submit a request