Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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

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

0 votes


Accepted answer

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

1 vote

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
× 10,943

Question asked: Jun 10 '13, 2:52 a.m.

Question was seen: 3,450 times

Last updated: Jun 10 '13, 3:44 a.m.

Confirmation Cancel Confirm