Retrieving the Work Item name from Work Item attribute in a script based calculated value
I am writing a script based calculated value to retrieve the name that is chosen in the Work Item attribute and it only returns the # of the work item, not the Summary - is it possible to retrieve the summary?
var name = workItem.getValue("iteration.bps"); |
One answer
I'm not sure I understand your question.
Do you mean that iteration.bps is based on an Enumeration and you get the enumeration Literal back instead of the Display Name associated with that Literal? If so, then starting in 4.0, you can get getLabel() instead of getValue()
getLabel(String attributeId)
(since 4.0, to get the label of an enumeration literal)
Per: https://jazz.net/wiki/bin/view/Main/AttributeCustomization#API_for_Javascript Susan |
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.