It's all about the answers!

Ask a question

Can I access the work item ID in a calculated value attribute customization?

Andrew Trobec (49712144139) | asked Jun 10 '13, 2:52 a.m.

I need to access a work item's ID in a calculated value attribute customization.  Is it possible?

In my script I have:

var WorkItemAttributes =;

and this allows me to access, for example, a work item's state using:


Can I do this with the ID using:



Thank you and best regards,


Accepted answer

permanent link
Dinesh Kumar B (4.1k413) | answered Jun 10 '13, 3:44 a.m.
yes, you can use workItem.getValue(workItemAttributes.ID) where workItemAttributes is of type
Andrew Trobec selected this answer as the correct answer

Your answer

Register or 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.