How to find values assigned to a dropdown using the API
search cancel

How to find values assigned to a dropdown using the API

book

Article ID: 223719

calendar_today

Updated On:

Products

Rally SaaS Rally On-Premise Rally Perpetual Hosted

Issue/Introduction

Finding values associated with a dropdown can be done with the workspace schema.

Environment

Release :

Component :

Resolution

In order to access the workspace schema, you will first need to locate your workspace object ID.  Use the following article to identify your workspace object ID: https://knowledge.broadcom.com/external/article/47763/rally-find-object-ids-of-current-worksp.html

If you are working in a browser, it is recommended to install a JSON formatter browser extension since the response will not be easily read without formatting.

After acquiring the workspace object ID, access the following URL:

https://rally1.rallydev.com/slm/schema/v2.0/workspace/<WORKSPACE_OID>

From here, you can search for the field name.  Bear in mind that you might see the field names mentioned multiple times.  The reason the field may be mentioned multiple times is that they represent the different work items.  For example, if you have a custom field with the same name that is configured for user stories and defects, you will see that mentioned twice in the schema.  Because of this, you will need to validate that the field definition is the correct one you're looking for.

That information is contained in the TypeDefinition of the AttributeDefinition.

The path is:

Schema -> AttributeDefinition -> TypeDefinition -> TypePath

The TypePath indicates what work item or object type the custom field is defined against.

 

AllowedValues will be accessed in the following way:

Schema -> AttributeDefinition -> AllowedValues

 

Additional Information

keywords: agile central rally field dropdown