Tasks

GET api/v2/Organisation/{Slug}/Tasks/{Id}

Description: Returns a task based on the id. Example: https://api.totalsynergy.com/api/v2/Organisation/testOrg/Tasks/30021
Required Parameters:
Id long value - id of task
Response:

{
  "id": 69,
  "projectId": 3,
  "stageId": 15,
  "stageName": "Professional Development",
  "workBreakdownId": 0,
  "sort": 0,
  "number": "0.0",
  "expenseTypeId": 0,
  "expenseType": "",
  "name": "Conferences",
  "note": "",
  "canDelete": false,
  "canChangetask": false,
  "percent": 0,
  "color": "#aaa",
  "startDate": null,
  "endDate": null,
  "startDateAsInt": 0,
  "endDateAsInt": 0,
  "blockAllDays": true,
  "budgetAmount": 0,
  "budgetUnits": 0,
  "targetSortPositionTaskId": 0,
  "tags": "",
  "unitSummary": 0,
  "totalExTaxSummary": 0,
  "noteCount": 0,
  "unAllocatedHours": 0,
  "delete": false,
  "taskRates": []
}
                        

Try it out

Loading...
200
        {Response body}
			
Method
GET
Request Headers
'Content-Type': 'application/json' token
URL
http://some url here.com

GET api/v2/Organisation/{Slug}/Tasks/AvailableForTimesheets

Description: Returns a list of tasks available for timesheets Example: https://api.totalsynergy.com/api/v2/Organisation/testOrg/Tasks/AvailableForTimesheets?stageId=1
Required Parameters:
StageId long value - id of stage to search for tasks
Response:

[
  {
    "id": 1,
    "stageId": 1,
    "relationId": 0,
    "projectId": 0,
    "projectName": null,
    "name": "CAD Plan / Preparation",
    "groupId": 1,
    "group": "Stage Tasks",
    "percentComplete": 0
  },
  {
    "id": 1,
    "stageId": 1,
    "relationId": 0,
    "projectId": 0,
    "projectName": null,
    "name": "CAD Plan / Preparation",
    "groupId": 2,
    "group": "General Project Tasks",
    "percentComplete": 0
  },
    
  .....

  {
    "id": 18,
    "stageId": 1,
    "relationId": 0,
    "projectId": 0,
    "projectName": null,
    "name": "Travel",
    "groupId": 2,
    "group": "General Project Tasks",
    "percentComplete": 0
  }
]