Back to Service

Method Details for GetMilestonesRaw.

Gets a list of milestones

Parameters

  • siteCode String Unique identification for your TimeLog account
  • apiID String The API ID
  • apiPassword String The API password
  • milestoneID Integer ID of specific Milestone. Set to 0 to get all milestones
  • projectID Integer ID of specific Project. Set to 0 to get all milestones
  • status Integer 0 for uncompleted milestones; 1 for completed milestones; -1 for all milestones

Returns

A list of milestones objects in XML format

Result Example

<?xml version="1.0" encoding="utf-8"?>
<tlp:Milestones 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/MilestonesRaw.xsd">
  <tlp:Milestone ID="1499">
    <MilestoneTypeID>13</MilestoneTypeID>
    <ProjectID>102</ProjectID>
    <ProjectName>EMI - Presale (leads)</ProjectName>
    <Date>2015-04-01T00:00:00</Date>
    <ResponsibleEmployeeID>312</ResponsibleEmployeeID>
    <ResponsibleEmployeeName>Peter Andersen</ResponsibleEmployeeName>
    <Text>Complete integration of NAV</Text>
    <Completed>0</Completed>
    <WBSNo>3</WBSNo>
    <SortOrder>5</SortOrder>
  </tlp:Milestone>
</tlp:Milestones>

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="Milestones" >
		<xsd:complexType>
			<xsd:sequence>
				<xsd:element name="Milestone" type="tlp:MilestonesRaw_Type" minOccurs="0" maxOccurs="unbounded" />
			</xsd:sequence>
		</xsd:complexType>
		<xsd:key name="Milestone_Key">
			<xsd:selector xpath=".//tlp:Milestone" />
			<xsd:field xpath="@ID" />
		</xsd:key>
	</xsd:element>

	<xsd:complexType name="MilestonesRaw_Type">
		<xsd:sequence>
			<xsd:element name="MilestoneTypeID" type="xsd:string" />
			<xsd:element name="ProjectID" type="xsd:string" />
			<xsd:element name="ProjectName" type="xsd:string" />
      <xsd:element name="Date" type="xsd:dateTime" />
      <xsd:element name="ResponsibleEmployeeID" type="xsd:string" />
      <xsd:element name="ResponsibleEmployeeName" type="xsd:string" />
      <xsd:element name="Text" type="xsd:string" />
      <xsd:element name="Completed" type="xsd:string" />
      <xsd:element name="WBSNo" type="xsd:dateTime" />
      <xsd:element name="SortOrder" type="xsd:dateTime" />
     </xsd:sequence>
		<xsd:attribute name="ID" type="xsd:positiveInteger" use="required" />
	</xsd:complexType>

</xsd:schema>

Download the XSD