API query returning total results of 0 when there are artifacts
search cancel

API query returning total results of 0 when there are artifacts

book

Article ID: 232717

calendar_today

Updated On:

Products

Rally SaaS

Issue/Introduction

  API query returning total results of 0 when there should be artifacts being returned by the query.

Cause

This can happen when there is a workspace context conflict due to the user having access to multiple workspaces.  

The user's workspace context is likely set to a different workspace either through a default project/workspace setting on the user's profile, some previous programmatic binding to that workspace, or through our default workspace selection process which works by choosing the first alphabetical workspace the user has access to if no other workspace can be chosen.

 

Resolution

To resolve this issue, it is necessary to pass a workspace attribute in the request.  For example:

https://rally1.rallydev.com/slm/webservice/v2.0/hierarchicalrequirement?query=(project = "/project/<PROJECT_OID>"))&workspace=/workspace/<WORKSPACE_OID>

To find the target workspace object ID, you may use the following article: https://knowledge.broadcom.com/external/article/47763/rally-find-object-ids-of-current-worksp.html

Additional Information

keywords: agile central ws zero totalresultcount empty project