Skip to main content

 

Planview Customer Success Center

Get recent card activity

GET /io/card/:cardId/activity

Get card activity.

Query Params

Param Type Usage Default
limit integer Specify the number of events to receive 100
eventId string Support paging of events by specifying the last event id received. null
direction enumeration Specify older posts as you scroll, or newer. older

Example Requests

Defaults

curl -X GET \
    https://myaccount.leankit.com/io/card/10113988569/activity' \
    -H 'Authorization: Basic base64encodedauth' \

####

curl -X GET \
    https://myaccount.leankit.com/io/card/10113988569/activity?limit=25&eventId=457634234&direction=newer' \
    -H 'Authorization: Basic base64encodedauth' \

Example Successful Response

{
    "events": [
        {
            "id": "10113988923",
            "type": "cardMoved",
            "timestamp": "2020-01-08T17:23:01Z",
            "user": {
                "id": "1111",
                "fullName": "Test User",
                "avatar": "https://myaccount.leankit.com/avatar/show/1111/?s=25"
            },
            "data": {
                "card": {
                    "id": "1000",
                    "title": "Test Card"
                },
                "fromLane": {
                    "id": "100",
                    "title": "Doing Now"
                },
                "toLane": {
                    "id": "101",
                    "title": "Finished"
                }
            }
        }
    ]
}

Event Data:

attachmentAdded

{
    "type": "attachmentAdded",
    "data": {
        "card": {
            "id": "1000",
            "title": "Test Card"
        },
        "fileName": "test.txt",
        "comment": "attachment comment"
    }
}

attachmentDeleted

{
    "type": "attachmentDeleted",
    "data": {
        "card": {
            "id": "1000",
            "title": "Test Card"
        },
        "fileName": "test.txt",
        "comment": "attachment comment"
    }
}

cardCreated

{
    "type": "cardCreated",
    "data": {
        "card": {
            "id": "1000",
            "title": "Test Card"
        },
        "lane": {
            "id": "100",
            "title": "Doing Now"
        }
    }
}

cardChanged

{
    "type": "cardChanged",
    "data": {
        "card": {
            "id": "1000",
            "title": "Test Card"
        },
        "fields": [
            {
                "name": "size",
                "oldValue": "0",
                "newValue": "1"
            },
            {
                "name": "description",
                "oldValue": null,
                "newValue": "<p>Updated Description</p>"
            }
        ]
    }
}

cardBlocked

{
    "type": "cardBlocked",
    "data": {
        "card": {
            "id": "1000",
            "title": "Test Card"
        },
        "comment": "test blocking comment"
    }
}

cardUnblocked

{
    "type": "cardUnblocked",
    "data": {
        "card": {
            "id": "1000",
            "title": "Test Card"
        },
        "comment": "test unblocking comment"
    }
}

cardMoved

{
    "type": "cardMoved",
    "data": {
        "card": {
            "id": "1000",
            "title": "Test Card"
        },
        "fromLane": {
            "id": "100",
            "title": "Doing Now"
        },
        "toLane": {
            "id": "101",
            "title": "Finished"
        }
    }
}

cardMovedOffBoard

{
    "type": "cardMovedOffBoard",
    "data": {
        "card": {
            "id": "1000",
            "title": "Test Card"
        },
        "fromLane": {
            "id": "100",
            "title": "Doing Now"
        },
        "fromBoard": {
            "id": "10",
            "title": "Board A"
        },
        "toBoard": {
            "id": "20",
            "title": "Board B"
        },
        "toLane": {
            "id": "200",
            "title": "Not Started"
        }
    }
}

cardMovedToTaskBoard

{
    "type": "cardMovedToTaskBoard",
    "data": {
        "card": {
            "id": "2000",
            "title": "Card converted to Task"
        },
        "fromLane": {
            "id": "100",
            "title": "Doing Now"
        },
        "toLane": {
            "id": "110",
            "title": "ToDo"
        },
        "parentCard": {
            "id": "1000",
            "title": "Test Card"
        }
    }
}

taskCardCreated

{
    "type": "taskCardCreated",
    "data": {
        "card": {
            "id": "3000",
            "title": "Task Card"
        },
        "lane": {
            "id": "110",
            "title": "ToDo"
        },
        "parentCard": {
            "id": "1000",
            "title": "Test Card"
        }
    }
}

taskCardMoved

{
    "type": "taskCardMoved",
    "data": {
        "card": {
            "id": "3000",
            "title": "Task Card"
        },
        "fromLane": {
            "id": "110",
            "title": "ToDo"
        },
        "toLane": {
            "id": "111",
            "title": "Doing"
        },
        "parentCard": {
            "id": "1000",
            "title": "Test Card"
        }
    }
}

taskCardMovedToBoard

{
    "type": "taskCardMovedToBoard",
    "data": {
        "card": {
            "id": "3000",
            "title": "Task Card"
        },
        "fromLane": {
            "id": "111",
            "title": "Doing"
        },
        "fromBoard": {
            "id": "10",
            "title": "Board A"
        },
        "toBoard": {
            "id": "20",
            "title": "Board B"
        },
        "toLane": {
            "id": "200",
            "title": "Not Started"
        }
    }
}

userAssigned

{
    "type": "userAssigned",
    "data": {
        "card": {
            "id": "1000",
            "title": "Test Card"
        },
        "user": {
            "id": "1111",
            "fullName": "Test User",
            "emailAddress": "test.user@myaccount.com",
            "avatar": "http://myaccount.leankit.com/avatar/show/1111/?s=25"
        }
    }
}

userUnassigned

{
    "type": "userUnassigned",
    "data": {
    "card": {
      "id": "1000",
      "title": "Test Card"
    },
    "user": {
      "id": "1111",
      "fullName": "Test User",
      "emailAddress": "test.user@myaccount.com",
      "avatar": "http://myaccount.leankit.com/avatar/show/1111/?s=25"
    }
  }
}

commentAdded

{
    "type": "commentAdded",
    "data": {
        "card": {
            "id": "1000",
            "title": "Test Card"
        },
        "comment": "<p>test comment</p>"
    }
}

cardChildConnectionCreated

{
    "type": "cardChildConnectionCreated",
    "data": {
        "card": {
            "id": "1000",
            "title": "Test Card"
        },
        "childCard": {
            "id": "4000",
            "title": "child"
        }
    }
}

cardChildConnectionDeleted

{
    "type": "cardChildConnectionDeleted",
    "data": {
        "card": {
            "id": "1000",
            "title": "Test Card"
        },
        "childCard": {
            "id": "4000",
            "title": "child"
        }
    }
}

cardParentConnectionCreated

{
    "type": "cardParentConnectionCreated",
    "data": {
        "card": {
            "id": "1000",
            "title": "Test Card"
        },
        "parentCard": {
            "id": "5000",
            "title": "Parent Card"
        }
    }
}

cardParentConnectionDeleted

{
    "type": "cardParentConnectionDeleted",
    "data": {
        "card": {
            "id": "1000",
            "title": "Test Card"
        },
        "parentCard": {
            "id": "5000",
            "title": "Parent Card"
        }
    }
}

boardConnected

{
    "type": "boardConnected",
    "data": {
        "card": {
            "id": "1000",
            "title": "Test Card"
        },
        "board": {
            "id": "10",
            "title": "Board A"
        }
    }
}

boardDisconnected

{
    "type": "boardDisconnected",
    "data": {
        "card": {
            "id": "1000",
            "title": "Test Card"
        },
        "board": {
            "id": "10",
            "title": "Board A"
        }
    }
}

cardSyncDestinationCreated

{
    "type": "cardSyncDestinationCreated",
    "data": {
        "card": {
            "id": "1000",
            "title": "Test Card"
        },
        "destinationCard": {
            "id": "1002",
            "title": "Test Card"
        }
    }
}

cardSyncDestinationDeleted

{
    "type": "cardSyncDestinationDeleted",
    "data": {
        "card": {
            "id": "1000",
            "title": "Test Card"
        },
        "destinationCard": {
            "id": "1002",
            "title": "Test Card"
        }
    }
}

cardSyncSourceCreated

{
    "type": "cardSyncSourceCreated",
    "data": {
        "card": {
            "id": "1002",
            "title": "Test Card"
        },
        "sourceCard": {
            "id": "1000",
            "title": "Test Card"
        }
    }
}

cardSyncSourceDeleted

{
    "type": "cardSyncSourceDeleted",
    "data": {
        "card": {
            "id": "1002",
            "title": "Test Card"
        },
        "sourceCard": {
            "id": "1000",
            "title": "Test Card"
        }
    }
}

laneWipExceeded

{
    "type": "laneWipExceeded",
    "data": {
        "card": {
            "id": "1000",
            "title": "Test Card"
        },
        "lane": {
            "id": "100",
            "title": "Doing Now"
        },
        "comment": "Wip override comment"
    }
}

userWipExceeded

{
    "type": "userWipExceeded",
    "data": {
        "card": {
            "id": "1000",
            "title": "Test Card"
        },
        "user": {
            "id": "1111",
            "fullName": "Test User",
            "emailAddress": "test.user@myaccount.com",
            "avatar": "http://myaccount.leankit.com/avatar/show/1111/?s=25"
        },
        "comment": "test user wip override"
    }
}



Updated 2021-09-23 @ 07:09 AM