Back to Service

Method Details for GetMilestoneTypesRaw.

Gets a list of milestoneTypes

Parameters

  • siteCode String Unique identification for your TimeLog account
  • apiID String The API ID
  • apiPassword String The API password
  • milestoneTypeID Integer ID of specific MilestoneType. Set to 0 to get all milestoneTypes
  • 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:MilestoneTypes 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/MilestoneTypesRaw.xsd">
  <tlp:MilestoneType ID="1499">
    <Name>Integration</Name>
    <IsActive>1</IsActive>
   </tlp:MilestoneType>
</tlp:MilestoneTypes>

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="MilestoneTypes" >
		<xsd:complexType>
			<xsd:sequence>
				<xsd:element name="MilestoneType" type="tlp:MilestoneTypesRaw_Type" minOccurs="0" maxOccurs="unbounded" />
			</xsd:sequence>
		</xsd:complexType>
		<xsd:key name="MilestoneType_Key">
			<xsd:selector xpath=".//tlp:MilestoneType" />
			<xsd:field xpath="@ID" />
		</xsd:key>
	</xsd:element>

	<xsd:complexType name="MilestoneTypesRaw_Type">
		<xsd:sequence>
			<xsd:element name="Name" type="xsd:string" />
			<xsd:element name="IsActive" type="xsd:string" />
			</xsd:sequence>
		<xsd:attribute name="ID" type="xsd:positiveInteger" use="required" />
	</xsd:complexType>

</xsd:schema>

Download the XSD