Forest Resource is responsible for serving forests and forest updates and receiving the forest actions (change commands) from the client.
Returns the hierarchical issue list (forest) of the specified structure.
While GET method is preferred, POST is more robust because there's no risk of exceeding URL length with large forest specifications. The content is the same JSON object (but not URL-encoded, obviously).
Retrieves latest forest for structure #113.
In this reply, the most important part is "formula", which contains serialized information about the forest.
Each component (delimited by comma) represents a row and looks like this: 10374:1:5/240. In this example, the numbers are:
- 10374 is the row ID,
- 1 is the row depth,
- 5/240 is the item identity.
If the row contains an issue, it’s just issue ID, otherwise it has the format of <item type>/<long item id>, or <item type>//<string item id>. Item type is a number, which is expanded in the “itemTypes” map in the reply.
To change a forest, you POST one or more change actions to
/forest/update resource. Each action is a serialized version of
ForestAction – for more information about the actions, see Changing Structure Content.