Back to Service

Method Details for GetTasksShortList.

Gets a list of tasks with key information only

Parameters

  • siteCode String Unique identification for your TimeLog account
  • apiID String The API ID
  • apiPassword String The API password
  • 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/TasksShortList.xsd">
  <tlp:Task ID="123">
    <tlp:Name>Marketing </tlp:Name>
    <tlp:ProjectID>12</tlp:ProjectID>
    <tlp:Status>0</tlp:Status>
    <tlp:IsParent>1</tlp:IsParent>
  </tlp:Task>
  <tlp:Task ID="127">
    <tlp:Name>Kampagne </tlp:Name>
    <tlp:ProjectID>12</tlp:ProjectID>
    <tlp:Status>0</tlp:Status>
    <tlp:ParentID>123</tlp:ParentID>
    <tlp:IsParent>0</tlp:IsParent>
  </tlp:Task>
  <tlp:Task ID="399">
    <tlp:Name>Website </tlp:Name>
    <tlp:ProjectID>12</tlp:ProjectID>
    <tlp:Status>0</tlp:Status>
    <tlp:ParentID>123</tlp:ParentID>
    <tlp:IsParent>0</tlp:IsParent>
  </tlp:Task>
  <tlp:Task ID="264">
    <tlp:Name>NTI-Expo 2002 </tlp:Name>
    <tlp:ProjectID>12</tlp:ProjectID>
    <tlp:Status>0</tlp:Status>
    <tlp:ParentID>123</tlp:ParentID>
    <tlp:IsParent>0</tlp:IsParent>
  </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:TaskShort_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="TaskShort_Type">
    <xsd:sequence>
      <xsd:element name="Name" type="xsd:string" />
      <xsd:element name="ProjectID" type="xsd:positiveInteger" />
      <xsd:element name="Status" type="xsd:byte" />
      <xsd:element name="ParentID" type="xsd:integer" minOccurs="0" maxOccurs="1"/>
      <xsd:element name="IsParent" type="xsd:boolean" />
    </xsd:sequence>
    <xsd:attribute name="ID" type="xsd:positiveInteger" use="required" />
  </xsd:complexType>
</xsd:schema>

Download the XSD