Assigned Countermeasures

Get all assigned Countermeasures

This endpoint returns a list of Countermeasures assigned to the current user.

GET /api/v2/users/me/tasks/

Query parameters

The following parameters may be used to filter the activity resources in the response.

Parameter Description
application Returns a list of Countermeasures within the specified application.
GET /api/v2/users/me/tasks/ HTTP/1.1
Accept: application/json
Authorization: Token "YOUR SDE ACCESS TOKEN"
HTTP/1.1 200 OK
Content-Type: application/json

{
    "results": [{
        "accepted": true,
        "ad_hoc": false,
        "artifact_proxy": "ABC-XYZ",
        "assigned_to": [
            {
                "email": "admin@example.com",
                "id": 3
            }
        ],
        "text": "Insecure forgotten password.",
        "id": "1-T2",
        "library_task_created": "2010-10-20T17:46:50Z",
        "library_task_updated": "2015-05-07T18:58:26.732000Z",
        "manually_added_from_library": false,
        "note_count": 0,
        "phase": "Requirements",
        "priority": "8",
        "relevant": true,
        "status": "TS2",
        "task_id": "T2",
        "title": "Secure forgotten password",
        "updated": "2015-07-08T02:16:33.923315Z",
        "url": "http://example.com/bunits/bu1/app1/proj1/tasks/phase/requirements/1-T2",
        "verification_status": null,
        "project": 1,
        "application": 1
    }]
}

Expand parameters

See the Expand Parameters section for more details.

Parameter Description
project Project field is expanded to display project information.
GET /api/v2/users/me/tasks/?expand=project HTTP/1.1
Accept: application/json
Authorization: Token "YOUR SDE ACCESS TOKEN"
HTTP/1.1 200 OK
Content-Type: application/json

{
    "results": [{
        "accepted": true,
        "ad_hoc": false,
        "artifact_proxy": "ABC-XYZ",
        "assigned_to": [
            {
                "email": "admin@example.com",
                "id": 3
            }
        ],
        "text": "Insecure forgotten password.",
        "id": "1-T2",
        "library_task_created": "2010-10-20T17:46:50Z",
        "library_task_updated": "2015-05-07T18:58:26.732000Z",
        "manually_added_from_library": false,
        "note_count": 0,
        "phase": "Requirements",
        "priority": "8",
        "relevant": true,
        "status": "TS2",
        "task_id": "T2",
        "title": "Secure forgotten password",
        "updated": "2015-07-08T02:16:33.923315Z",
        "url": "http://example.com/bunits/bu1/app1/proj1/tasks/phase/requirements/1-T2",
        "verification_status": null,
        "project": {
            "id": 1936,
            "slug": "proj1",
            "url": "http://example.com/bunits/bu1/app1/project1",
            "application": 1,
            "profile" : {
                "id": "P9",
                "name": "Android App",
                "logo_url": "/static/images/android.png"
            },
            "archived": false,
            "name": "Proj1",
            "creator": 1,
            "description": "API Project",
            "tags": ["foo", "bar"],
            "created": "2015-04-15T19:30:04.132712Z",
            "updated": "2015-04-15T19:57:15.042353Z",
            "parent": null,
            "users": [{
                "id": "1",
                "email": "test@example.com",
                "role": "PR4",
                "first_name": "Admin",
                "last_name": "Testerton"
            }],
            "groups": [{
                "id": "G1",
                "name": "Devs",
                "role": "PR4"
            }],
            "custom_attributes": {
              "slug": "value"
            },
            "locked_on": null,
            "locked_by": null,
            "locked": false
        },
        "application": 1
    }]
}

Get a specific assigned Countermeasure

This endpoint retreives a specific assigned Countermeasure as specified by the task_id parameter.

GET /api/v2/users/me/tasks/{task_id}/

URL parameters

Parameter Description
task_id The id of the Countermeasure to be retrieved.
GET /api/v2/users/me/tasks/1-T2/ HTTP/1.1
Accept: application/json
Authorization: Token "YOUR SDE ACCESS TOKEN"
HTTP/1.1 200 OK
Content-Type: application/json

{
        "accepted": true,
        "ad_hoc": false,
        "artifact_proxy": "ABC-XYZ",
        "assigned_to": [
            {
                "email": "admin@example.com",
                "id": 3
            }
        ],
        "text": "Insecure forgotten password.",
        "id": "1-T2",
        "library_task_created": "2010-10-20T17:46:50Z",
        "library_task_updated": "2015-05-07T18:58:26.732000Z",
        "manually_added_from_library": false,
        "note_count": 0,
        "phase": "Requirements",
        "priority": "8",
        "relevant": true,
        "status": "TS2",
        "task_id": "T2",
        "title": "Secure forgotten password",
        "updated": "2015-07-08T02:16:33.923315Z",
        "url": "http://example.com/bunits/bu1/app1/proj1/tasks/phase/requirements/1-T2",
        "verification_status": null,
        "project": 1,
        "application": 1
}

results matching ""

    No results matching ""