Getting Time Sheet Policies

Request: http://<PPM_Server_IP>:<port>/itg/rest/tm/policies

HTTP Method: GET

Description: Get time sheet policies.

Query Parameters:

Attribute Description
ownerUserId User ID of the time sheet owner

Response entity body:

  • on success: Return an XML object of the time sheet policies with the following format:

    <ns2:policies xmlns:ns2="http://www.hp.com/ppm/tm/">
       <policy>
          <name>BucketShowLevel<name>
          <value>DAY</value>
       </policy>
       <policy>
          <name>BucketReportMethod<name>
          <value>HOUR</value>
       </policy>
       <policy>
          <name>HourInPeriodType<name>
          <value>FIXED</value>
       </policy>
       <policy>
          <name>AllowMultipleTimeSheets<name>
          <value>false</value>
       </policy>
       <policy>
          <name>NotifyDelinquentTimeSheet<name>
          <value>true</value>
       </policy>
       <policy>
          <name>MaximumHourPerTimeSheet<name>
          <value>20.0</value>
       </policy>
       <policy>
          <name>EnforcementLevelError<name>
          <value>false</value>
       </policy>
       <policy>
          <name>OverrideWorkAllocationFlag<name>
          <value>false</value>
       </policy>
       <policy>
          <name>AutoApprovalFlag<name>
          <value>false</value>
       </policy>
       <policy>
          <name>ReqActivitiesRequiredFlag<name>
          <value>true</value>
       </policy>
       <policy>
          <name>TskActivitiesRequiredFlag<name>
          <value>true</value>
       </policy>
       <policy>
          <name>PrjActivitiesRequiredFlag<name>
          <value>true</value>
       </policy>
       <policy>
          <name>PkgActivitiesRequiredFlag<name>
          <value>true</value>
       </policy>
       <policy>
          <name>MiscActivitiesRequiredFlag<name>
          <value>true</value>
       </policy>
       <policy>
          <name>ActivitiesDisplayFlag<name>
          <value>true</value>
       </policy>
       <policy>
          <name>ExpHrsDisplayFlag<name>
          <value>true</value>
       </policy>
       <policy>
          <name>ReqWorkItemEnabledFlag<name>
          <value>true</value>
       </policy>
       <policy>
          <name>TskWorkItemEnabledFlag<name>
          <value>true</value>
       </policy>
       <policy>
          <name>PrjWorkItemEnabledFlag<name>
          <value>true</value>
       </policy>
       <policy>
          <name>PkgWorkItemEnabledFlag<name>
          <value>true</value>
       </policy>
       <policy>
          <name>MiscWorkItemEnabledFlag<name>
          <value>true</value>
       </policy>
       <type>Global</type>
    </ns2:policies>
  • on failure: The following message codes are returned if the operation fails:

    Message Code

    HTTP Return Code

    Message

    Cause

    Possible Corrective Action

    PPMC_WSE502

    400

    The owner user id is invalid. Please input the correct owner user id.

    The owner user ID is invalid.

    Input the correct owner user id

    PPMC_WSE508

    500

    Cannot find the resource with the owner user id.

    The owner user ID does not exist.

    N/A