How do I access child workitems via Java Script ?
Hi,
I wonder if it is possible to access child records via Java Script used in attribute customization. For example, https://jazz.net/wiki/bin/view/Main/AttributeCustomization lists all possible attributes accessed via "com.ibm.team.workitem.api.common.WorkItemAttributes" class. I suspect there might be other "com.ibm.team.workitem.api.common.XX" class which enables to access child workitems. Use Case is like as follows: Child workitems set value: X (i := workitem ID for example ) Parent workitem compute like: X (e.g. Total sum of X) Actual usage can be: - Average timespent / Maxmium timespent / minimum timespent - Total cost of parent workitems (in time) - etc, etc If it is not possible, I'm going to change my design to use Java. |
2 answers
Hi,
By any chance did you figure out if this was possible? I am trying to complete the exact same customization. Are you able to access values in the children work items via javascript? If so, would you happen to have any example code? Thank you. Paul Hi, |
Ralph Schoon (63.6k●3●36●47)
| answered May 08 '12, 3:03 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
Hi Paul,
as far as I can tell, this is not possible using javascript today. You would have to create a followup action. Javascript just does not expose relationships. See https://jazz.net/forums/viewtopic.php?t=24412 for more details. |
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.