It's all about the answers!

Ask a question

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

kavita herur (5876293) | asked Mar 11 '13, 1:52 a.m.

  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.



One answer

permanent link
Ralph Schoon (62.3k33643) | answered Mar 11 '13, 3:21 a.m.
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 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.

kavita herur commented Mar 11 '13, 8:01 a.m.

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 

Ralph Schoon commented Mar 11 '13, 8:09 a.m.

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 or the workshop Lab 5 already mentioned. 

Your answer

Register or to post your answer.