All Rally artifacts carry a unique number called the Object ID, also known as the OID of the artifact. This number is generally hidden behind the scenes, and allows the software to find an item in its exact location. When writing a webscript or custom application for Rally, these OIDs are needed to point to the correct Project or Workspace.
If you are not an administrator, you can use the process below to query these values through web services:
1. Create a new Custom View. The advantage of using a custom view like this is that you can always refer to it later as long as you do not delete this Custom View.
<head> <script src="//unpkg.com/json-viewer-custom-element"></script> <script> // $RallyContext:Begin const $RallyContext = { WidgetName: 'My Widget' } // $RallyContext:End window.onload = () => { document.getElementById('json-viewer').setAttribute('value', JSON.stringify($RallyContext)); } </script> </head> <body> <h1>$RallyContext Context Browser:</h1> <json-viewer id='json-viewer' value="{}"></json-viewer> </body>
The Global Scope item contains information about the currently selected scope.
2. Get the ObjectID of a current workspace using the Web Services API
Informational: Here is the help page for the Rally WSAPI documentation: https://techdocs.broadcom.com/us/en/ca-enterprise-software/valueops/rally/rally-help/reference/rally-web-services-api.html