Find Object IDs of Current Workspace and Project Without Admin Rights

Document ID : KB000047763
Last Modified Date : 14/02/2018
Show Technical Document Details

Summary

All CA Agile Central 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 CA Agile Central, these OIDs are needed to point to the correct Project or Workspace.

Issue

All CA Agile Central 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 CA Agile Central, these OIDs are needed to point to the correct Project or Workspace.

Resolution

If you are not an administrator, you can use the process below to query these values through web services:

1. ?Create a new custom page. For steps on how to perform this action, please see "Create a custom page and add apps" section in?this help article. Make sure to select Custom HTML in Custom Custom category:
User-added image

2. ?You will be presented with a Settings dialog. Enter this text in the HTML box:
?

<html>
Current Workspace ID: __WORKSPACE_OID__
Current Project ID: __PROJECT_OID__
All Projects in Scope: __PROJECT_OIDS_IN_SCOPE__
Project Scoping Up: __PROJECT_SCOPING_UP__
Project Scoping Down: __PROJECT_SCOPING_DOWN__
Current User ID:? __USER_OID__
Curent User Name: __USER_NAME__
</html>

User-added image



3. ?Click Save
?

The custom tab script will run, and you will see your OIDs for Workspace and Projects in scope:

User-added image

The advantage of using a custom page like that is that you can always refer to it later as long as you do not delete this custom page.

But there are also other ways to get workspace and project ObjectIDs. To get ObjectID of a current workspace go to Web Services API documentation when you are already logged in to CA Agile Central in another tab of your browser:
https://rally1.rallydev.com/slm/doc/webservice/

The top of the page displays

Subscription: <your subscriptions name> (ObjectID = <your sub oid>)

Workspace: <your workspace name> (ObjectID = <current workspace oid>)


To find out Object ID of a current CA Agile Central project, click on any user story or any other work item to open a details page of that artifact. CA Agile Central project's Object ID will be included in the URL. 12352608219? is the Project's ObjectID in this example:

https://rally1.rallydev.com/#/12352608219/detail/userstory/18966465912