Get Recent Updates

Returns recent updates in your space.

Method

GET 

URL

/api/v2/space/activities 

Query parameters

Parameter Name Type Description
activityTypeId[] Number type(1-26)
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
21: Pull Request Deleted
22: Milestone Created
23: Milestone Updated
24: Milestone Deleted
25: Project Group Added
26: Project Group Deleted