It's all about the answers!

Ask a question

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


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

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 = com.ibm.team.workitem.api.common.WorkItemAttributes;

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

workItem.getValue(WorkItemAttributes.STATE);

Can I do this with the ID using:

workItem.getValue(WorkItemAttributes.ID);

?

Thank you and best regards,

Andrew

Accepted answer


permanent link
Dinesh Kumar B (4.1k413) | answered Jun 10 '13, 3:44 a.m.
JAZZ DEVELOPER
yes, you can use workItem.getValue(workItemAttributes.ID) where workItemAttributes is of type com.ibm.team.workitem.api.common.WorkItemAttributes
https://jazz.net/wiki/bin/view/Main/AttributeCustomization#Accessing_built_in_attributes_of
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.