How get work Item Parent in the script dojo
Accepted answer
You can't as far as I am aware. You can only access attributes. See https://jazz.net/wiki/bin/view/Main/AttributeCustomization#API_for_Javascript for what you can do. I tried to be more specific about what you can and can't in https://jazz.net/library/article/1093 at the beginning of Lab 5.
For some cases https://rsjazz.wordpress.com/2013/06/26/attribute-customization-java-based-value-providers-conditions-and-validators/ could be a solution. Other approaches could be using Java Extensions. If there is a feasible approach depends on your use case.
For some cases https://rsjazz.wordpress.com/2013/06/26/attribute-customization-java-based-value-providers-conditions-and-validators/ could be a solution. Other approaches could be using Java Extensions. If there is a feasible approach depends on your use case.
Comments
In my script dojo, I can access a field summary of work item Parent??
As far as I am aware no.
From all I know, in an attribute customization script with JavaScript you neither get access to the link, nor (as a consequence) access to the element at the other end of the link (and so also not to its attributes).
You can access the attribute values of the work item context the script runs in. You have limited support for complex data types such as team areas and the like. Consider reading the links I put into the first answer.
Comments
Ralph Schoon
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER Oct 28 '14, 9:25 a.m.Is this JavaScript in an attribute customization or your own web site?
Durand Guillaume
Oct 28 '14, 9:40 a.m.attribute customization.
I want to recover the Work Item Parent in the dojo script.
Durand Guillaume
Oct 28 '14, 9:41 a.m.attribute customization.
I want to recover the Work Item Parent in the dojo script.