Work Packages

/rest/work_packages/for_project/1

  • Get for ID 1
Example result
<?xml version="1.0" encoding="UTF-8"?>
<xml>
    <item1 id="2" name="Sonstiges" name_origtext="Sonstiges" tag_id="10000010" lft="2" rgt="5" project_id="1" is_fee_area="1" ... />
    <item2 id="3" name="SonstigesAB" name_origtext="SonstigesAB" tag_id="" lft="3" rgt="4" project_id="1" is_fee_area="0" ... />
</xml>

In X2 15323 (12.6), the cost_centre was moved from projects to work packages. You will therefore be able to gain access to the cost_centre_id and cost_centre_name via the this REST call.

/rest/work_packages/for_project_lowest/1

  • Get for ID 1
  • fullname gives you the full tree path of names.
Example result
<?xml version="1.0" encoding="UTF-8"?>
<xml>
    <item2 id="3" name="SonstigesAB" name_origtext="SonstigesAB" tag_id="" lft="3" rgt="4" project_id="1" is_fee_area="0" fullname="Sonstiges | SonstigesAB" ... />
</xml>