It looks like the attribute on a portfolio item called “Portfolio Item Type” has values which are objects, just like the “State” attribute. However, I am not sure how I would go about using that attribute as a filter, just like the dropdown that is available on the Portfolio Items page.*
I tried binding to the values with radio buttons, which does not work. So, would I need to use an attribute/object dropdown instead?
*I also noticed that the “Type” label on the left of that dropdown disappears when switching from “Initiative” or “MRU” to the other, after the initial page load.
Edit: It looks like I can use an attribute dropdown for the “State” attribute, but not the “Portfolio Item Type.” I have also tried changing it to an object dropdown to no avail.
Here’s an example of the javascript I’m trying to use:
var typeDropdown = new rally.sdk.ui.AttributeDropdown({
defaultValue : "Initiative",
label:"Type",
showLabel:true,
type : "PortfolioItem",
attribute : "PortfolioItemType"
}, rallyDataSource);
typeDropdown.display("typeDropdown", dropdownSelectionChanged);
If you are using Rally SDK 1.x you can use the following to display a dropdown of Portfolio Item types …
Portfolio Item types are distinct objects (instances of ‘Type’) as they contain additional information (ordinal number, kanban states etc.).