It's all about the answers!

Ask a question

[closed] retrieve category[team area] using javascript

VK L (8177156159) | asked Jun 05 '13, 10:21 a.m.
closed Jun 05 '13, 10:37 p.m.
 Hi All,
            I am trying to retrieve "Work Item Category" value using javascript. could you guide me on the workitem.getvalue method for this attribute? I am getting dojo loader errors for the following trial (no specific error):

var tags= workItem.getValue(WorkItemAttributes.category)
var tags1= workItem.getValue(WorkItemAttributes.WORK_ITEM_CATEGORY)  


The question has been closed for the following reason: "Other" by valli Jun 05 '13, 10:37 p.m.

One answer

permanent link
Kot T. (1.5k11319) | answered Jun 05 '13, 4:55 p.m.
You may want to try the following syntax:
     var tags1= workItem.getValue(<your attribute ID>)