Rally: How to get Last Update Date for Test Cases, Test Case Steps, and Test Case Results using the Rest API
search cancel

Rally: How to get Last Update Date for Test Cases, Test Case Steps, and Test Case Results using the Rest API

book

Article ID: 194333

calendar_today

Updated On:

Products

Rally SaaS

Issue/Introduction

The objects below have very large data and we'd like to understand how can we source incremental data, as it doesn't appear that the last update date has been exposed.

Objects :

  1. Test Case
  2. Test Case Step
  3. Test Case Result

 

Environment

Release : SAAS

Component : AGILE CENTRAL

Resolution

For Test Cases, I was able to query a Test Case using LastUpdateDate with the following:

https://rally1.rallydev.com/slm/doc/webservice/jsonDisplay.jsp?uri=testcase%3Fworkspace%3Dhttps%3A%2F%2Fus1.rallydev.com%2Fslm%2Fwebservice%2Fv2.0%2Fworkspace%<WORKSPACE_OID>%26query%3D(LastUpdateDate%2520%253E%25202019-11-17T22%253A01%253A12.641Z)%26fetch%3Dtrue%26start%3D1%26pagesize%3D20

Or in Postman:

GET https://rally1.rallydev.com/slm/webservice/v2.0/testcase?query=(LastUpdateDate > 2019-11-17T22:01:12.641Z)

Unfortunately, our Test Case Steps and Test Case Results do not contain that Last Update date information.

For sourcing incremental data, I would recommend querying the Test Case for LastUpdateDate then pull all steps and results connected with that Test Case to see if there are changes.

As a note: In my testing, an update on a test case result/step will trigger an update on the TestCase object (LastUpdateDate).