Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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

0 votes


Accepted answer

Permanent link
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

1 vote

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!

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
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/

0 votes

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.

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 log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,936
× 6,121
× 1,700

Question asked: Jan 16 '13, 11:47 a.m.

Question was seen: 6,967 times

Last updated: Jul 18 '13, 2:21 a.m.

Related questions
Confirmation Cancel Confirm