It's all about the answers!

Ask a question

Attribute Costumization - Calculated values from related work items


Andrada Roman (201014) | asked Jan 16 '13, 11:47 a.m.
edited Jan 16 '13, 1:46 p.m. by Ralph Schoon (63.1k33645)
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


permanent link
Ralph Schoon (63.1k33645) | 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
chen fengmiao commented May 13 '13, 10:45 p.m.

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!


Ralph Schoon commented May 14 '13, 12:47 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

Wordpress seems to be blocked in China. Not sure that applies to you.

You can append the string ".nyud.net" to the blog URL and try if it opens then. You can access a mirror image of this site from http://rsjazz.wordpress.com.nyud.net/

In China we have seen http://rsjazz.wordpress.com.nyud.net/ is at least accessible through Hong Kong. If that does not work for you http://dl.dropbox.com/u/12668004/UpdateParentParticipants/20121127_UpdateParentParticipants.zip contains the code but misses all the explanations.

One other answer



permanent link
Ralph Schoon (63.1k33645) | 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
chen fengmiao commented Jul 17 '13, 9:23 p.m.

Hi,

 I also don't open the link http://rsjazz.wordpress.com.nyud.net/,

the error "Http 500 interior server error"


Ralph Schoon commented Jul 18 '13, 2:21 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

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.

The code is also available in the RTC Extensions Stream (RTC AttributeCustomization component) in the Jazz In Flight project @ JazzHub. The code shows some simple providers as an entry point and some more complex ones to show the potential.

Your answer


Register or to post 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.