Rally - Lookback API: How to find all artifacts a user owned in a given time frame
search cancel

Rally - Lookback API: How to find all artifacts a user owned in a given time frame

book

Article ID: 129469

calendar_today

Updated On:

Products

Rally On-Premise Rally SaaS

Issue/Introduction

How can we find all artifacts that a given user owned within a certain period of time?

Environment

Release:
Component: ACSAAS

Resolution

Lookback API can help achieve this request. 

Below is a query that will return:
- All defects within workspace <WORKAPCE_OID>
- Owned by User (objectid = <USER_OID>)
- between time period: 2019-0213T03:53:38.000Z and 2019-02-13T03:54:38.000Z

https://rally1.rallydev.com/analytics/v2.0/service/rally/workspace/<WORKSPACE_OID>/artifact/snapshot/query.js?find={"_TypeHierarchy": "Defect", "_User":<USER_OID>,"_ValidFrom":{"$gte":"2019-02-13T03:53:38.000Z"},"_ValidTo":{"$lte":"2019-02-13T03:54:38.000Z"}}}&fields=["FormattedID","Name","Owner","_ValidFrom","_ValidTo","_PreviousValues","_RevisionNumber"]&pagesize=2000