Get Started
Portal api methods
Help

GET api/2.0/project/time/filter This function requires authentication

Description

Returns the list with the detailed information about all the time spent matching the filter parameters specified in the request

Parameters
Name Description Type Example
projectid
sent in url
Project Id
optional
number 1234
tag
sent in url
Project Tag
optional
number 1234
departament
sent in url
Departament GUID
optional
guid 9924256A-739C-462b-AF15-E652A3B1B6EB
participant
sent in url
Participant GUID
optional
guid 9924256A-739C-462b-AF15-E652A3B1B6EB
createdStart
sent in url
Minimum value of create time
optional
Date and Time Roundtrip format: 2008-04-10T06-30-00.000Z
createdStop
sent in url
Maximum value of create time
optional
Date and Time Roundtrip format: 2008-04-10T06-30-00.000Z
lastId
sent in url
Last time spent ID number 1234
myProjects
sent in url
Tasks time in My Projects Bool value true
myMilestones
sent in url
Tasks time in My Milestones Bool value true
milestone
sent in url
Milestone ID
optional
number 1234
status
sent in url
Payment status
optional
ASC.Projects.Core.Domain.PaymentStatus
Example
GET api/2.0/project/time/filter?projectid=1234&tag=1234&departament=9924256A-739C-462b-AF15-E652A3B1B6EB&participant=9924256A-739C-462b-AF15-E652A3B1B6EB&createdStart=2008-04-10T06-30-00.000Z&createdStop=2008-04-10T06-30-00.000Z&lastId=1234&myProjects=True&myMilestones=True
Host: yourportal.onlyoffice.com
Content-Type: application/json
Accept: application/json
Returns

List of time spent

Example Response

application/json

{
  "status": 0,
  "response": [
    {
      "canEdit": true,
      "id": 10,
      "date": "2019-12-15T06:37:50.9304816Z",
      "hours": 3.5,
      "note": "Sample note",
      "relatedProject": 123,
      "task": null,
      "relatedTask": 13456,
      "relatedTaskTitle": "Sample task",
      "createdBy": {
        "id": "00000000-0000-0000-0000-000000000000",
        "displayName": "Mike Zanyatski",
        "title": "Manager",
        "avatarSmall": "url to small avatar",
        "profileUrl": ""
      },
      "person": {
        "id": "00000000-0000-0000-0000-000000000000",
        "displayName": "Mike Zanyatski",
        "title": "Manager",
        "avatarSmall": "url to small avatar",
        "profileUrl": ""
      },
      "paymentStatus": 2,
      "statusChanged": "2019-12-15T06:37:50.9304816Z",
      "canEditPaymentStatus": true,
      "createOn": null
    }
  ]
}

text/xml

<result>
  <status>0</status>
  <response>
    <canEdit>true</canEdit>
    <id>10</id>
    <date>2019-12-15T06:37:50.9304816Z</date>
    <hours>3.5</hours>
    <note>Sample note</note>
    <relatedProject>123</relatedProject>
    <task />
    <relatedTask>13456</relatedTask>
    <relatedTaskTitle>Sample task</relatedTaskTitle>
    <createdBy>
      <id>00000000-0000-0000-0000-000000000000</id>
      <displayName>Mike Zanyatski</displayName>
      <title>Manager</title>
      <avatarSmall>url to small avatar</avatarSmall>
      <profileUrl></profileUrl>
    </createdBy>
    <person>
      <id>00000000-0000-0000-0000-000000000000</id>
      <displayName>Mike Zanyatski</displayName>
      <title>Manager</title>
      <avatarSmall>url to small avatar</avatarSmall>
      <profileUrl></profileUrl>
    </person>
    <paymentStatus>2</paymentStatus>
    <statusChanged>2019-12-15T06:37:50.9304816Z</statusChanged>
    <canEditPaymentStatus>true</canEditPaymentStatus>
    <createOn />
  </response>
</result>