Get User Recent Updates

Returns user's recent updates

Method

GET

URL

/api/v2/users/:userId/activities

URL Parameters

Parameter Name Type Description
userId Number user ID

Query Parameters

Parameter Name Type Description
activityTypeId[] Number type(1-17)
minId Number minimum ID
maxId Number maximum ID
count Number number of records to retrieve(1-100) default=20
order String "asc" or "desc" default="desc"

Response Example

Status Line / Response Header

HTTP/1.1 200 OK
Content-Type:application/json;charset=utf-8

Response Body

[
    {
        "id": 3153,
        "project": {
            "id": 92,
            "projectKey": "SUB",
            "name": "Subtasking",
            "chartEnabled": true,
            "subtaskingEnabled": true,
            "projectLeaderCanEditProjectLeader": false,
            "textFormattingRule": null,
            "archived": false,
            "displayOrder": 0
        },
        "type": 2,
        "content": {
            "id": 4809,
            "key_id": 121,
            "summary": "Comment",
            "description": "",
            "comment": {
                "id": 7237,
                "content": ""
            },
            "changes": [
                {
                    "field": "milestone",
                    "new_value": " R2014-07-23",
                    "old_value": "",
                    "type": "standard"
                },
                {
                    "field": "status",
                    "new_value": "4",
                    "old_value": "1",
                    "type": "standard"
                }
            ]
        },
        "notifications": [
            {
                "id": 25,
                "alreadyRead": false,
                "reason": 2,
                "user": {
                    "id": 5686,
                    "userId": "takada",
                    "name": "takada",
                    "roleType": 2,
                    "lang": "ja",
                    "mailAddress": "takada@nulab.example"
                }
                "resourceAlreadyRead":false
            },
        ],
        "createdUser": {
            "id": 1,
            "userId": "admin",
            "name": "admin",
            "roleType": 1,
            "lang": "ja",
            "mailAddress": "eguchi@nulab.example"
        },
        "created": "2013-12-27T07:50:44Z"
    },
    ...
]

Response Description

Parameter Name Type Description
type Number type of activity´╝Ü
1: Issue Created
2: Issue Updated
3: Issue Commented
4: Issue Deleted
5: Wiki Created
6: Wiki Updated
7: Wiki Deleted
8: File Added
9: File Updated
10: File Deleted
11: SVN Committed
12: Git Pushed
13: Git Repository Created
14: Issue Multi Updated
15: Project User Added
16: Project User Deleted
17: Comment Notification Added
18: Pull Request Added
19: Pull Request Updated
20: Comment Added on Pull Request