Back to Service

Method Details for GetTasksRaw.

Gets a list of tasks

Parameters

  • siteCode String Unique identification for your TimeLog account
  • apiID String The API ID
  • apiPassword String The API password
  • taskID Integer ID of specific Task. Set to 0 to get all tasks
  • projectID Integer ID of specific Project. Set to 0 to get all tasks
  • status Integer 0 for inactive tasks; 1 for active tasks; -1 for all tasks
  • taskTypeID Integer ID of specific Task type. Set to 0 to get all tasks

Returns

A list of task objects in XML format

Result Example

<?xml version="1.0" encoding="utf-8" ?>
<tlp:Tasks
  xmlns:tlp="http://www.timelog.com/XML/Schema/tlp/v4_4"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://www.timelog.com/XML/Schema/tlp/v4_4 http://www.timelog.com/api/xsd/TasksRaw.xsd">
  <tlp:Task ID="10" GUID="04E04C5C-91F4-474D-8D88-09B8A358B9A5">
    <tlp:Name>TDR 1 - Overall payment plan</tlp:Name>
    <tlp:TaskNo>0007</tlp:TaskNo>
    <tlp:WBS>7</tlp:WBS>
    <tlp:ProjectID>3</tlp:ProjectID>
    <tlp:ProjectNo>0003</tlp:ProjectNo>
    <tlp:Status>0</tlp:Status>
    <tlp:StatusDetailed>3</tlp:StatusDetailed>
    <tlp:ProjectSubContractID>10</tlp:ProjectSubContractID>
    <tlp:ParentID>0</tlp:ParentID>
    <tlp:IsParent>0</tlp:IsParent>
    <tlp:BudgetHours>100.0000</tlp:BudgetHours>
    <tlp:BudgetAmount>15000.0000</tlp:BudgetAmount>
    <tlp:BudgetAmountCurrency>15000.000</tlp:BudgetAmountCurrency>
    <tlp:IsFixedPrice>1</tlp:IsFixedPrice>
    <tlp:StartDate>2018-07-20T00:00:00</tlp:StartDate>
    <tlp:EndDate>2018-10-19T00:00:00</tlp:EndDate>
    <tlp:InvoicingType>FixedPriceTask</tlp:InvoicingType>
    <tlp:CreatedAt>2018-07-20T12:33:55.640</tlp:CreatedAt>
    <tlp:CreatedByEmployeeId>373</tlp:CreatedByEmployeeId>
    <tlp:CreatedBy>gha</tlp:CreatedBy>
    <tlp:LastModifiedAt>2018-08-10T16:14:41.597</tlp:LastModifiedAt>
    <tlp:LastModifiedByEmployeeId>373</tlp:LastModifiedByEmployeeId>
    <tlp:LastModifiedBy>gha</tlp:LastModifiedBy>
    <tlp:IsBillable>1</tlp:IsBillable>
    <tlp:AllocatedRevenueAmount>0.0000</tlp:AllocatedRevenueAmount>
    <tlp:AllocatedRevenueAmountCurrency>0.0000</tlp:AllocatedRevenueAmountCurrency>
  </tlp:Task>
  <tlp:Task ID="11" GUID="40B27545-D724-47DB-848B-DA284612BEC8">
    <tlp:Name>TDR - Fixed price task</tlp:Name>
    <tlp:TaskNo>0008</tlp:TaskNo>
    <tlp:WBS>8</tlp:WBS>
    <tlp:ProjectID>3</tlp:ProjectID>
    <tlp:ProjectNo>0003</tlp:ProjectNo>
    <tlp:Status>0</tlp:Status>
    <tlp:StatusDetailed>3</tlp:StatusDetailed>
    <tlp:ProjectSubContractID>11</tlp:ProjectSubContractID>
    <tlp:ParentID>0</tlp:ParentID>
    <tlp:IsParent>0</tlp:IsParent>
    <tlp:BudgetHours>100.0000</tlp:BudgetHours>
    <tlp:BudgetAmount>15000.0000</tlp:BudgetAmount>
    <tlp:BudgetAmountCurrency>15000.000</tlp:BudgetAmountCurrency>
    <tlp:IsFixedPrice>1</tlp:IsFixedPrice>
    <tlp:StartDate>2018-07-20T00:00:00</tlp:StartDate>
    <tlp:EndDate>2018-10-19T00:00:00</tlp:EndDate>
    <tlp:InvoicingType>FixedPriceTask</tlp:InvoicingType>
    <tlp:CreatedAt>2018-07-20T12:34:29.397</tlp:CreatedAt>
    <tlp:CreatedByEmployeeId>373</tlp:CreatedByEmployeeId>
    <tlp:CreatedBy>gha</tlp:CreatedBy>
    <tlp:LastModifiedAt>2018-08-10T16:14:41.653</tlp:LastModifiedAt>
    <tlp:LastModifiedByEmployeeId>373</tlp:LastModifiedByEmployeeId>
    <tlp:LastModifiedBy>gha</tlp:LastModifiedBy>
    <tlp:IsBillable>1</tlp:IsBillable>
    <tlp:AllocatedRevenueAmount>0.0000</tlp:AllocatedRevenueAmount>
    <tlp:AllocatedRevenueAmountCurrency>0.0000</tlp:AllocatedRevenueAmountCurrency>
  </tlp:Task>
  <tlp:Task ID="6" GUID="22727194-B3B6-4B9D-A67C-F3287EC6BCC2">
    <tlp:Name>Prepaid</tlp:Name>
    <tlp:TaskNo>0003</tlp:TaskNo>
    <tlp:WBS>3</tlp:WBS>
    <tlp:ProjectID>3</tlp:ProjectID>
    <tlp:ProjectNo>0003</tlp:ProjectNo>
    <tlp:Status>0</tlp:Status>
    <tlp:StatusDetailed>3</tlp:StatusDetailed>
    <tlp:ProjectSubContractID>6</tlp:ProjectSubContractID>
    <tlp:ParentID>0</tlp:ParentID>
    <tlp:IsParent>0</tlp:IsParent>
    <tlp:BudgetHours>100.0000</tlp:BudgetHours>
    <tlp:BudgetAmount>12000.0000</tlp:BudgetAmount>
    <tlp:IsFixedPrice>0</tlp:IsFixedPrice>
    <tlp:StartDate>2018-07-20T00:00:00</tlp:StartDate>
    <tlp:EndDate>2018-10-19T00:00:00</tlp:EndDate>
    <tlp:InvoicingType>TimeAndMaterial</tlp:InvoicingType>
    <tlp:CreatedAt>2018-07-20T12:31:28.143</tlp:CreatedAt>
    <tlp:CreatedByEmployeeId>373</tlp:CreatedByEmployeeId>
    <tlp:CreatedBy>gha</tlp:CreatedBy>
    <tlp:LastModifiedAt>2018-08-10T16:14:41.280</tlp:LastModifiedAt>
    <tlp:LastModifiedByEmployeeId>373</tlp:LastModifiedByEmployeeId>
    <tlp:LastModifiedBy>gha</tlp:LastModifiedBy>
    <tlp:IsBillable>1</tlp:IsBillable>
    <tlp:AllocatedRevenueAmount>0.0000</tlp:AllocatedRevenueAmount>
    <tlp:AllocatedRevenueAmountCurrency>0.0000</tlp:AllocatedRevenueAmountCurrency>
  </tlp:Task>
</tlp:Tasks>

Result Schema

<?xml version="1.0" encoding="utf-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
            xmlns:tlp="http://www.timelog.com/XML/Schema/tlp/v4_4"
            targetNamespace="http://www.timelog.com/XML/Schema/tlp/v4_4"
            elementFormDefault="qualified"
            attributeFormDefault="unqualified">
  <xsd:element name="Tasks">
    <xsd:complexType>
      <xsd:sequence>
        <xsd:element name="Task" type="tlp:TaskRaw_Type" minOccurs="0" maxOccurs="unbounded" />
      </xsd:sequence>
    </xsd:complexType>
    <xsd:key name="Task_Key">
      <xsd:selector xpath=".//tlp:Task" />
      <xsd:field xpath="@ID" />
    </xsd:key>
  </xsd:element>

  <xsd:complexType name="TaskRaw_Type">
    <xsd:sequence>
      <xsd:element name="Name" type="xsd:string" />
      <xsd:element name="WBS" type="xsd:string" />
      <xsd:element name="TaskNo" type="xsd:positiveInteger" minOccurs="0" maxOccurs="1"/>
      <xsd:element name="ProjectID" type="xsd:positiveInteger" />
      <xsd:element name="ProjectNo" type="xsd:string" />
      <xsd:element name="Status" type="xsd:byte" />
      <xsd:element name="StatusDetailed" type="xsd:byte" />
      <xsd:element name="ProjectSubContractID" type="xsd:positiveInteger" />
      <xsd:element name="ParentID" type="xsd:positiveInteger" minOccurs="0" maxOccurs="1"/>
      <xsd:element name="IsParent" type="xsd:boolean" />
      <xsd:element name="TaskTypeID" type="xsd:positiveInteger" minOccurs="0" maxOccurs="1" />
      <xsd:element name="TaskType" type="xsd:string" minOccurs="0" maxOccurs="1" />
      <xsd:element name="TaskCategoryID" type="xsd:positiveInteger" minOccurs="0" maxOccurs="1" />
      <xsd:element name="TaskCategory" type="xsd:string" minOccurs="0" maxOccurs="1" />
      <xsd:element name="BudgetHours" type="xsd:decimal" />
      <xsd:element name="BudgetAmount" type="xsd:decimal" />
      <xsd:element name="BudgetAmountCurrency" type="xsd:decimal" />
      <xsd:element name="IsFixedPrice" type="xsd:boolean" />
      <xsd:element name="StartDate" type="xsd:dateTime" />
      <xsd:element name="EndDate" type="xsd:dateTime" />
      <xsd:element name="InvoicingType" type="xsd:string" />
      <xsd:element name="CreatedAt" type="xsd:dateTime" />
      <xsd:element name="CreatedByEmployeeId" type="xsd:positiveInteger" />
      <xsd:element name="CreatedBy" type="xsd:string" />
      <xsd:element name="LastModifiedAt" type="xsd:dateTime" />
      <xsd:element name="LastModifiedByEmployeeId" type="xsd:positiveInteger" />
      <xsd:element name="LastModifiedBy" type="xsd:string" />
      <xsd:element name="IsBillable" type="xsd:boolean" />
      <xsd:element name="AllocatedRevenueAmount" type="xsd:decimal" />
      <xsd:element name="AllocatedRevenueAmountCurrency" type="xsd:decimal" />
    </xsd:sequence>
    <xsd:attribute name="ID" type="xsd:positiveInteger" use="required"/>
    <xsd:attribute name="GUID" type="xsd:string" use="required"/>
  </xsd:complexType>

</xsd:schema>

Download the XSD