How to use LookbackAPI for burnout diagrams?

I need a good example of using LookbackAPI to get data for a liquefaction schedule. I see some limited questions and answers on the API, but there are no examples of how I will use it for this. I need to get the current scope of story points and story points.

+4
source share
2 answers

Sorry for the lack of examples available. More and more examples will appear as the beta version of LBAPI arrives. I definitely recommend that you look at the Lookback API Documentation (LBAPI) , as there are good examples for formulating queries.

For burnout, suppose you want to get snapshots of the state for an iteration from January 15 to 2013 to January 30, 2013, and that the Iteration is applied to the project hierarchy, which has four levels. The following LBAPI request will receive the PlanEstimate, ToDo, and Schedule status for the Stories planned for this iteration:

{ find: { _TypeHierarchy:"HierarchicalRequirement", Children:null, _ValidFrom:{ $gte:"2013-01-15TZ", $lt:"2013-01-30TZ" }, Iteration:{ $in:[ 12345678910, 12345678911, 12345678912, 12345678913 ] } }, fields:[ "PlanEstimate", "ToDo", "ScheduleState" ] } 

Where:

  $in:[ 12345678910, 12345678911, 12345678912, 12345678913 ] 

The identifier of the Iteration object is called "Iteration 1". Probably the easiest way to get this object identifier is from a standard WSAPI request for Iterations: (Name = "Iteration 1") . For iterations copied into a hierarchy of projects with four depths, we will see four Iteration identifiers, similar to those indicated above.

The hardest part to build a chart is the easy way to deal with Time-Series data. The most reliable way to query and process LBAPI data right now is to work directly with the REST endpoint and handle the returned JSON results in your own code.

In Javascript applications, the preferred tools are AppSDK2 , in particular SnapshotStore, for processing data and translating it into a chart.

For Javascript applications, the Lumenize javascript library is different from LBAPI, but was developed by the Rally analyst and comes in the SDK. You can find some examples of using LBAPI and Lumenize to create diagrams as part of some of the Rally-internal and Rally-customer Hackathon projects here:

https://github.com/RallyHackathon

Please be careful with these examples for several reasons:

  • Several aspects of the Lumenize namespace will be changed / renamed for clarity.
  • There is an error in the current version of Lumenize when its timeSeriesCalculator does not correctly account for stories deleted or recreated.

Hopefully, an updated version of AppSDK2 will be released soon to consolidate the Lumenize namespace and resolve the error, so it will be better to stick together between AppSDK2 and LBAPI for developing Javascript applications.

+2
source

Unfortunately, the .NET, Java, and Python toolkit has not yet been updated to support the callback API. As a result, you will need to perform an HTTP POST at the endpoint of the REST Look API API directly, with a body similar to the Mark W body specified above and the Content-Type 'application / json'.

I would recommend using the XHR Poster extension for experimenting with what you send from the browser: https://chrome.google.com/webstore/detail/xhr-poster/akdbimilobjkfhgamdhneckaifceicen

+2
source

All Articles