ALERT: Some images may not load properly within the Knowledge Base Article. If you see a broken image, please right-click and select 'Open image in a new tab'. We apologize for this inconvenience.

Agile Central - LookBack API: Get all Previous States of Schedule State field

book

Article ID: 111779

calendar_today

Updated On:

Products

CA Agile Central On Premise (Rally) CA Agile Central SaaS (Rally)

Issue/Introduction



How can we use Lookback API to get all previous values of Schedule State?

Environment

Release:
Component: ACSAAS

Resolution

Here is an example Lookback API query you can use:

https://rally1.rallydev.com/analytics/v2.0/service/rally/workspace/<<Workspace Object ID>>/artifact/snapshot/query.js?find={"ObjectID":<<Artifact Object ID>>},_PreviousValues.ScheduleState%22:{%22$exists%22:true}}&fields=["ScheduleState","_SnapshotDate","_SnapshotNumber"]&hydrate=["ScheduleState"]&compress=true

This query is requesting all previous snapshots of the artifact that had value for Schedule State. The value is then hydrated to display the field's string (instead of the numeric value).

Here is a screenshot of the JSON output:

<Please see attached file for image>

User-added image

Additional Information

More on Lookback API: https://rally1.rallydev.com/analytics/doc/#/manual

Attachments

1558697243668000111779_sktwi1f5rjvs16ivi.png get_app