Get Started
Portal api methods
Help

GET api/2.0/project/{projectid}/task/{status} This function requires authentication

Description

Returns the list of all tasks with the selected status in the project with the ID specified in the request

Parameters
Name Description Type Example
projectid
sent in url
Project ID number 1234
status
sent in url
Task status. Can be one of: notaccept|open|closed|disable|unclassified|notinmilestone Open, Closed
Example
GET api/2.0/project/1234/task/0
Host: yourportal.onlyoffice.com
Content-Type: application/json
Accept: application/json
Returns

List of tasks

Example Response

application/json

{
  "status": 0,
  "response": [
    {
      "canEdit": false,
      "canCreateSubtask": false,
      "canCreateTimeSpend": false,
      "canDelete": false,
      "canReadFiles": false,
      "startDate": "2019-06-23T18:26:26.6793551Z",
      "id": 10,
      "title": "Sample Title",
      "description": "Sample description",
      "deadline": "2019-06-23T18:26:26.6793551Z",
      "priority": 1,
      "milestoneId": 123,
      "projectOwner": {
        "id": 123,
        "title": "Sample project",
        "status": 0,
        "isPrivate": false
      },
      "status": 0,
      "responsible": {
        "id": "00000000-0000-0000-0000-000000000000",
        "displayName": "Mike Zanyatski",
        "title": "Manager",
        "avatarSmall": "url to small avatar",
        "profileUrl": ""
      },
      "updatedBy": {
        "id": "00000000-0000-0000-0000-000000000000",
        "displayName": "Mike Zanyatski",
        "title": "Manager",
        "avatarSmall": "url to small avatar",
        "profileUrl": ""
      },
      "created": "2019-06-23T18:26:26.6793551Z",
      "createdBy": {
        "id": "00000000-0000-0000-0000-000000000000",
        "displayName": "Mike Zanyatski",
        "title": "Manager",
        "avatarSmall": "url to small avatar",
        "profileUrl": ""
      },
      "updated": "2019-06-23T18:26:26.6793551Z",
      "responsibles": null
    }
  ]
}

text/xml

<result>
  <status>0</status>
  <response>
    <canEdit>false</canEdit>
    <canCreateSubtask>false</canCreateSubtask>
    <canCreateTimeSpend>false</canCreateTimeSpend>
    <canDelete>false</canDelete>
    <canReadFiles>false</canReadFiles>
    <startDate>2019-06-23T18:26:26.6793551Z</startDate>
    <id>10</id>
    <title>Sample Title</title>
    <description>Sample description</description>
    <deadline>2019-06-23T18:26:26.6793551Z</deadline>
    <priority>1</priority>
    <milestoneId>123</milestoneId>
    <projectOwner>
      <id>123</id>
      <title>Sample project</title>
      <status>0</status>
      <isPrivate>false</isPrivate>
    </projectOwner>
    <status>0</status>
    <responsible>
      <id>00000000-0000-0000-0000-000000000000</id>
      <displayName>Mike Zanyatski</displayName>
      <title>Manager</title>
      <avatarSmall>url to small avatar</avatarSmall>
      <profileUrl></profileUrl>
    </responsible>
    <updatedBy>
      <id>00000000-0000-0000-0000-000000000000</id>
      <displayName>Mike Zanyatski</displayName>
      <title>Manager</title>
      <avatarSmall>url to small avatar</avatarSmall>
      <profileUrl></profileUrl>
    </updatedBy>
    <created>2019-06-23T18:26:26.6793551Z</created>
    <createdBy>
      <id>00000000-0000-0000-0000-000000000000</id>
      <displayName>Mike Zanyatski</displayName>
      <title>Manager</title>
      <avatarSmall>url to small avatar</avatarSmall>
      <profileUrl></profileUrl>
    </createdBy>
    <updated>2019-06-23T18:26:26.6793551Z</updated>
    <responsibles />
  </response>
</result>