Attribute Costumization - Calculated values from related work items
![]()
Andrada Roman (20●10●14)
| asked Jan 16 '13, 11:47 a.m.
edited Jan 16 '13, 1:46 p.m. by Ralph Schoon (62.3k●3●36●43)
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 |
Accepted answer
![]()
Ralph Schoon (62.3k●3●36●43)
| answered Jan 16 '13, 1:45 p.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER edited Jan 16 '13, 1:45 p.m.
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. Ralph Schoon selected this answer as the correct answer
Comments Hi , I don't open the link" http://rsjazz.wordpress.com/2012/07/31/rtc-update-parent-duration-estimation-and-effort-participant/ ". Can you send this example to me? thank you! ![]() FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
Wordpress seems to be blocked in China. Not sure that applies to you.
|
One other answer
![]()
Ralph Schoon (62.3k●3●36●43)
| answered Jun 27 '13, 8:11 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
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/
Comments Hi, I also don't open the link http://rsjazz.wordpress.com.nyud.net/, the error "Http 500 interior server error" I am sorry but I can't persuade China to unblock Workdpress. In China use a personal VPN, Also some companies block Wordpress. Again, not much I can do.
|