Jazz Register Log in
Jazz Forum Welcome to the Jazz Community Forum

Welcome to the Jazz Community Forum

Connect and collaborate with IBM Engineering experts and users

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");

0 votes



One answer

Permanent link
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

0 votes

Your answer

Register or log in to post 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: Jan 27 '14, 6:29 p.m.

Question was seen: 3,579 times

Last updated: Jan 27 '14, 11:06 p.m.

Related questions
Confirmation Cancel Confirm