Attribute Costumization - Calculated values from related work items
Hi all,
I am trying to create a Java Script Provider for calculating the value of a work item attribute in RTC.
The value should be composed from the SUMMARY and the DESCRIPTION of some other work items, related with the current one over "Link".
Is this possible?
I have read the https://jazz.net/wiki/bin/view/Main/AttributeCustomization article, where it is said that:
Many Thanks!!!!
Regards,
Andrada
I am trying to create a Java Script Provider for calculating the value of a work item attribute in RTC.
The value should be composed from the SUMMARY and the DESCRIPTION of some other work items, related with the current one over "Link".
Is this possible?
I have read the https://jazz.net/wiki/bin/view/Main/AttributeCustomization article, where it is said that:
Many Thanks!!!!
Regards,
Andrada
Accepted answer
Hi Andrada,
you can not easily access the data of other work items in JavaScript. There is no mechanism available to access relate work items, as far as I can tell.
The only way how you could actually access any data of other work items is using the HTTP based value provider. I don't think that is a practical approach and would discourage that. See https://jazz.net/library/article/1093 Lab 5 for what you can and can not so using scripts.
See http://rsjazz.wordpress.com/2012/07/31/rtc-update-parent-duration-estimation-and-effort-participant/ for an approach that works and has a reasonable performance as well. It uses a participant java server extension to do something similar to what you intent to do.
you can not easily access the data of other work items in JavaScript. There is no mechanism available to access relate work items, as far as I can tell.
The only way how you could actually access any data of other work items is using the HTTP based value provider. I don't think that is a practical approach and would discourage that. See https://jazz.net/library/article/1093 Lab 5 for what you can and can not so using scripts.
See http://rsjazz.wordpress.com/2012/07/31/rtc-update-parent-duration-estimation-and-effort-participant/ for an approach that works and has a reasonable performance as well. It uses a participant java server extension to do something similar to what you intent to do.
Comments
One other answer
For others that find this, there might be a way to do this in attribute customization by creating Java Extensions. Here are some samples: http://rsjazz.wordpress.com/2013/06/26/attribute-customization-java-based-value-providers-conditions-and-validators/