Task Elements and XML Structure

This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

This section contains information about children of the Tasks element defined in the Microsoft Office Project 2007 XML Data Interchange Schema (mspdi_pj12.xsd). The elements represent task data when you save a project in the XML format.

Tasks is a child of the Project element. For more information, see Project Elements and XML Structure.

XML Structure of Task Elements

The following shows the XML structure of the elements defined by the Task schema section of mspdi_pj12.xsd. The data type is indicated for those elements that require a text value. You can find more detailed information about valid text values for each element in the documentation annotations that are embedded in the Task Schema.

For more information about the data types used in the Project 2007 XML Data Interchange Schema, see Introduction to Project XML Data.

Many of the Task elements represent data fields in Microsoft Office Project. For more information about fields in Project Professional 2007 and Project Standard 2007, see Fields Reference.

Note

Detailed information about the structure of the TimephasedData element is shown in TimephasedDataType Elements and XML Structure in this schema reference.

<Tasks>

    <Task>

        <UID>integer</UID>

        <ID>integer</ID>

        <Name>string</Name>

        <Type>integer</Type>

        <IsNull>boolean<IsNull>

        <CreateDate>dateTime</CreateDate>

        <Contact>string</Contact>

        <WBS>string</WBS>

        <WBSLevel>string<WBSLevel>

        <OutlineNumber>string</OutlineNumber>

        <OutlineLevel>integer</OutlineLevel>

        <Priority>integer</Priority>

        <Start>dateTime</Start>

        <Finish>dateTime</Finish>

        <Duration>duration</Duration>

        <DurationFormat>integer</DurationFormat>

        <Work>duration</Work>

        <Stop>dateTime</Stop>

        <Resume>dateTime</Resume>

        <ResumeValid>boolean</ResumeValid>

        <EffortDriven>boolean</EffortDriven>

        <Recurring>boolean</Recurring>

        <OverAllocated>boolean</OverAllocated>

        <Estimated>boolean</Estimated>

        <Milestone>boolean</Milestone>

        <Summary>boolean</Summary>

        <Critical>boolean</Critical>

        <IsSubproject>boolean</IsSubproject>

        <IsSubprojectReadOnly>boolean</IsSubprojectReadOnly>

        <SubprojectName>string</SubprojectName>

        <ExternalTask>boolean</ExternalTask>

        <ExternalTaskProject>string</ExternalTaskProject>

        <EarlyStart>dateTime</EarlyStart>

        <EarlyFinish>dateTime</EarlyFinish>

        <LateStart>dateTime</LateStart>

        <LateFinish>dateTime</LateFinish>

        <StartVariance>integer</StartVariance>

        <FinishVariance>integer</FinishVariance>

        <WorkVariance>float</WorkVariance>

        <FreeSlack>integer</FreeSlack>

        <TotalSlack>integer</TotalSlack>

        <FixedCost>float</FixedCost>

        <FixedCostAccrual>string</FixedCostAccrual>

        <PercentComplete>integer</PercentComplete>

        <PercentWorkComplete>integer</PercentWorkComplete>

        <Cost>decimal</Cost>

        <OvertimeCost>decimal</OvertimeCost>

        <OvertimeWork>duration</OvertimeWork>

        <ActualStart>dateTime<ActualStart>

        <ActualFinish>dateTime</ActualFinish>

        <ActualDuration>duration</ActualDuration>

        <ActualCost>decimal</ActualCost>

        <ActualOvertimeCost>decimal</ActualOvertimeCost>

        <ActualWork>duration</ActualWork>

        <ActualOvertimeWork>duration</ActualOvertimeWork>

        <RegularWork>duration</RegularWork>

        <RemainingDuration>duration</RemainingDuration>

        <RemainingCost>decimal</RemainingCost>

        <RemainingWork>duration</RemainingWork>

        <RemainingOvertimeCost>decimal</RemainingOvertimeCost>

        <RemainingOvertimeWork>duration</RemainingOvertimeWork>

        <ACWP>float</ACWP>

        <CV>float</CV>

        <ConstraintType>integer</ConstraintType>

        <CalendarUID>integer</CalendarUID>

        <ConstraintDate>dateTime</ConstraintDate>

        <Deadline>dateTime</Deadline>

        <LevelAssignments>boolean</LevelAssignments>

        <LevelingCanSplit>boolean</LevelingCanSplit>

        <LevelingDelay>integer</LevelingDelay>

        <LevelingDelayFormat>integer</LevelingDelayFormat>

        <PreLeveledStart>dateTime</PreLeveledStart>

        <PreLeveledFinish>dateTime</PreLeveledFinish>

        <Hyperlink>string</Hyperlink>

        <HyperlinkAddress>string</HyperlinkAddress>

        <HyperlinkSubAddress>string</HyperlinkSubAddress>

        <IgnoreResourceCalendar>boolean</IgnoreResourceCalendar>

        <Notes>string</Notes>

        <HideBar>boolean</HideBar>

        <Rollup>boolean</Rollup>

        <BCWS>float</BCWS>

        <BCWP>float</BCWP>

        <PhysicalPercentComplete>integer</PhysicalPercentComplete>

        <EarnedValueMethod>integer</EarnedValueMethod>

        <PredecessorLink>

            <PredecessorUID>integer</PredecessorUID>

            <Type>integer</Type>

            <CrossProject>boolean</CrossProject>

            <CrossProjectName>string</CrossProjectName>

            <LinkLag>integer</LinkLag>

            <LagFormat>integer</LagFormat>

        </PredecessorLink>

        <ActualWorkProtected>duration</ActualWorkProtected>

        <ActualOvertimeWorkProtected>duration</ActualOvertimeWorkProtected>

        <ExtendedAttribute>

            <UID>integer</UID>

            <FieldID>string</FieldID>

            <Value>string</Value>

            <ValueID>integer</ValueID>

            <DurationFormat>integer</DurationFormat>

        </ExtendedAttribute>

        <Baseline>

            <TimephasedData>…</TimephasedData>

            <Number>integer</Number>

            <Interim>boolean</Interim>

            <Start>dateTime</Start>

            <Finish>dateTime</Finish>

            <Duration>duration</Duration>

            <DurationFormat>integer</DurationFormat>

            <EstimatedDuration>boolean</EstimatedDuration>

            <Work>duration</Work>

            <Cost>decimal</Cost>

            <BCWS>float</BCWS>

            <BCWP>float</BCWP>

            <FixedCost>float</FixedCost>

        </Baseline>

        <IsPublished>boolean</IsPublished>

        <StatusManager>string</StatusManager>

        <CommitmentStart>dateTime</CommitmentStart>

        <CommitmentFinish>dateTime</CommitmentFinish>

        <CommitmentType>integer</CommitmentType>

        <b408000 – b417fff>

                <!-- ##New Project 2007 enterprise task custom field data.

                        See Custom Field Data in XML for more information. -->

        </b408000 – b417fff>

        <b608000 – b617fff>

                <!-- ##New Project 2007 enterprise project custom field data. -->

        </b608000 – b617fff>

        <ExtendedAttribute>

            <FieldID>string</FieldID>

            <Value>string</ValueID>

            <ValueGUID>string</UID>

            <DurationFormat>integer</ValueID>

        </ExtendedAttribute>

        <OutlineCode>

            <FieldID>string</FieldID>

            <ValueID>integer</ValueID>

            <ValueGUID>string</UID>

        </OutlineCode>

        <TimephasedData>. . .</TimephasedData>

    </Task>

</Tasks>

See Also

Reference

TimephasedDataType Elements and XML Structure

Concepts

Introduction to Project XML Data

XML Schema for the Tasks Element

Custom Field Data in XML

Project Elements and XML Structure

Other Resources

Fields Reference