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

How to Get Parent Work Item attribute value in DOJO script to RTC project area

  Hi All,

 I  have voting WT (Blocking WT) once approved I want to create few more WTs to Parent. I  want to get one of parent work item value in (Block WT) voting WT in DOJO java script just for validating some data.

 Please can any one tell  me what is API  or how to get parent workeitem attribute value.

 Thanks,

Kavita

0 votes



One answer

Permanent link
I am not sure, if I understand the question. What is WT?

Assuming you talk about work items and JavaScript based work item customization, as far as I know there is no way to access work item links to other work items, including the parent, in JavaScript.

I would suggest to look at https://jazz.net/library/article/1093 especially Lab 5. There is a summary in the first sections about what you can, and what you can not do with JavaScript. Keep in mind that JavaScript is limited and for complex requirements it is better to implement them in an extension such as a participant. From a performance perspective, a participant is also preferable.

0 votes

Comments

Thanks Ralph,

 You are right, WT is work ticket. I saw few code in below link fetching configuration.getChild() Similarly is there API to get parent workitem attribute value

https://jazz.net/wiki/bin/view/Main/AttributeValueProviders 

Kavita, configuration.getChild() refers to reading the process.xml for configuration data and not a work item. You can make attribute customization more configurable that way. See https://jazz.net/wiki/bin/view/Main/AttributeCustomization or the workshop Lab 5 already mentioned. 

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,925

Question asked: Mar 11 '13, 1:52 a.m.

Question was seen: 7,692 times

Last updated: Mar 11 '13, 8:09 a.m.

Confirmation Cancel Confirm