Help & Support
Follow

LeanKit API (v1): Get Card or Task Card History

This method retrieves the History entries for the specified Card or Task Card.

Note: History is limited to the last 150 events. If a Card has more than 150 events, only the most recent 150 events will be returned.

Card History Request URL (GET):

https://{accountname}.leankit.com/kanban/api/card/history/{boardId}/{cardId}

Task Card History Request (GET):

https://{accountname}.leankit.com/kanban/api/card/history/{boardId}/{cardId}?taskBoardId={taskBoardId}

Sample request:

https://myaccount.leankit.com/kanban/api/card/history/256064019/256395058

Sample response:

{
  "ReplyData": [
    [
      {
        "FromLaneId": 256392766,
        "FromLaneTitle": "Doing Now",
        "CardId": 256395058,
        "CardTitle": "(AZ-1023) Sample Card 1",
        "ToLaneId": 256392761,
        "ToLaneTitle": "Not Started - Future Work: Ready to Start",
        "Type": "CardMoveEventDTO",
        "UserName": "david@test.com",
        "UserFullName": "David Neal",
        "UserId": "62984826",
        "DateTime": "10/14/2015 at 03:51:46 PM",
        "TimeDifference": "Ten minutes later",
        "LastDate": 635804491060000000,
        "OverrideType": null,
        "TaskboardContainingCardTitle": null,
        "TaskboardContainingCardId": null
      },
      {
        "Changes": [
          {
            "FieldName": "Priority",
            "OldValue": "Normal",
            "NewValue": "High",
            "OldDueDate": null,
            "NewDueDate": null,
            "OldStartDate": null,
            "NewStartDate": null
          },
          {
            "FieldName": "Size",
            "OldValue": "0",
            "NewValue": "4",
            "OldDueDate": null,
            "NewDueDate": null,
            "OldStartDate": null,
            "NewStartDate": null
          },
          {
            "FieldName": "Description",
            "OldValue": null,
            "NewValue": "Updating the card description",
            "OldDueDate": null,
            "NewDueDate": null,
            "OldStartDate": null,
            "NewStartDate": null
          },
          {
            "FieldName": "Tags",
            "OldValue": null,
            "NewValue": "web,ux",
            "OldDueDate": null,
            "NewDueDate": null,
            "OldStartDate": null,
            "NewStartDate": null
          }
        ],
        "CardId": 256395058,
        "CardTitle": "(AZ-1023) Sample Card 1",
        "ToLaneId": 256392766,
        "ToLaneTitle": "Doing Now",
        "Type": "CardFieldsChangedEventDTO",
        "UserName": "david@test.com",
        "UserFullName": "David Neal",
        "UserId": "62984826",
        "DateTime": "10/14/2015 at 03:40:55 PM",
        "TimeDifference": "Twenty Eight minutes later",
        "LastDate": 635804484550000000,
        "OverrideType": null,
        "TaskboardContainingCardTitle": null,
        "TaskboardContainingCardId": null
      },
      {
        "FromLaneId": 256392759,
        "FromLaneTitle": "Not Started - Future Work: Approved",
        "CardId": 256395058,
        "CardTitle": "(AZ-1023) Sample Card 1",
        "ToLaneId": 256392766,
        "ToLaneTitle": "Doing Now",
        "Type": "CardMoveEventDTO",
        "UserName": "david@test.com",
        "UserFullName": "David Neal",
        "UserId": "62984826",
        "DateTime": "10/14/2015 at 03:12:54 PM",
        "TimeDifference": "One hour later",
        "LastDate": 635804467740000000,
        "OverrideType": null,
        "TaskboardContainingCardTitle": null,
        "TaskboardContainingCardId": null
      },
      {
        "FromLaneId": 256392766,
        "FromLaneTitle": "Doing Now",
        "CardId": 256395058,
        "CardTitle": "(AZ-1023) Sample Card 1",
        "ToLaneId": 256392759,
        "ToLaneTitle": "Not Started - Future Work: Approved",
        "Type": "CardMoveEventDTO",
        "UserName": "david@test.com",
        "UserFullName": "David Neal",
        "UserId": "62984826",
        "DateTime": "10/14/2015 at 01:55:05 PM",
        "TimeDifference": "Seven minutes later",
        "LastDate": 635804421050000000,
        "OverrideType": null,
        "TaskboardContainingCardTitle": null,
        "TaskboardContainingCardId": null
      },
      {
        "FromLaneId": 256392766,
        "FromLaneTitle": "Doing Now",
        "CardId": 256395058,
        "CardTitle": "(AZ-1023) Sample Card 1",
        "ToLaneId": 256392766,
        "ToLaneTitle": "Doing Now",
        "Type": "CardMoveEventDTO",
        "UserName": "david@test.com",
        "UserFullName": "David Neal",
        "UserId": "62984826",
        "DateTime": "10/14/2015 at 01:48:00 PM",
        "TimeDifference": "Thirteen minutes later",
        "LastDate": 635804416800000000,
        "OverrideType": null,
        "TaskboardContainingCardTitle": null,
        "TaskboardContainingCardId": null
      },
      {
        "Changes": [
          {
            "FieldName": "Card ID",
            "OldValue": "",
            "NewValue": "AZ-1023",
            "OldDueDate": null,
            "NewDueDate": null,
            "OldStartDate": null,
            "NewStartDate": null
          }
        ],
        "CardId": 256395058,
        "CardTitle": "(AZ-1023) Sample Card 1",
        "ToLaneId": 256392766,
        "ToLaneTitle": "Doing Now",
        "Type": "CardFieldsChangedEventDTO",
        "UserName": "david@test.com",
        "UserFullName": "David Neal",
        "UserId": "62984826",
        "DateTime": "10/14/2015 at 01:34:49 PM",
        "TimeDifference": "Nineteen seconds later",
        "LastDate": 635804408890000000,
        "OverrideType": null,
        "TaskboardContainingCardTitle": null,
        "TaskboardContainingCardId": null
      },
      {
        "CardId": 256395058,
        "CardTitle": "Sample Card 1",
        "ToLaneId": 256392766,
        "ToLaneTitle": "Doing Now",
        "Type": "CardCreationEventDTO",
        "UserName": "david@test.com",
        "UserFullName": "David Neal",
        "UserId": "62984826",
        "DateTime": "10/14/2015 at 01:34:30 PM",
        "TimeDifference": "",
        "LastDate": 635804408700000000,
        "OverrideType": null,
        "TaskboardContainingCardTitle": null,
        "TaskboardContainingCardId": null
      }
    ]
  ],
  "ReplyCode": 200,
  "ReplyText": ""
}

 

 

 

 

 

Doc ID: 1191979668

Have more questions? Submit a request