It's all about the answers!

Ask a question

Calculated Attribute Presentation


Jaegon Yoo (9611314) | asked Nov 11 '10, 1:39 a.m.
Hello~

I read an article about calculating attribute.

https://jazz.net/wiki/bin/view/Main/CalculatedAttributePresentation

I tried to execute a plug-in but it doesn't get started.

I put a break point to debug. but it doesn't get caught.

I checked that in debug configuration it includes 'com.ibm.team.workitem.ide.ui' which example plug-in extends.

Any idea?

Thanks in advance.

7 answers



permanent link
Patrick Streule (4.9k21) | answered Nov 11 '10, 4:23 a.m.
JAZZ DEVELOPER
I read an article about calculating attribute.

https://jazz.net/wiki/bin/view/Main/CalculatedAttributePresentation

I tried to execute a plug-in but it doesn't get started.

I put a break point to debug. but it doesn't get caught.

I checked that in debug configuration it includes
'com.ibm.team.workitem.ide.ui' which example plug-in extends.

The Wiki page is rather dated, and there is more support for calculated
attributes in 2.0.0.2 and 3.0.

https://jazz.net/wiki/bin/view/Main/AttributeValueProviders
An article about this functionality in 3.0 is in the works.

Could you let me know what you are trying to implement?

--
Regards,
Patrick
RTC Work Item Component Lead

permanent link
Jaegon Yoo (9611314) | answered Nov 14 '10, 11:22 p.m.
What I'm trying to do is field dependency.

For example, value of list box is changed, B list box dependent on A should be changed dynamically.

I checked that https://jazz.net/wiki/bin/view/Main/AttributeValueProviders
works properly.

But what I'm trying to implement is list box menu which is array.

As far as I know, RTC supports only primitive type.

Any idea to implement this kind of thing?

permanent link
Jorge Diaz (8664234) | answered Nov 15 '10, 10:20 a.m.
JAZZ DEVELOPER
Hello Patrick,

I'm trying to implement in 3.0 a WI field which dynamically gets updated depending on the values of two Enumerations. According to new support for this kind of customization in new version, is there any new way of implementing such scenario?

Thanks in advance for your help.

Regards,

Jorge.

permanent link
Daniel Toczala (88211414) | answered Nov 15 '10, 12:19 p.m.
FORUM MODERATOR / JAZZ DEVELOPER
Jorge,

Look at the information in the links above, but what I think you are looking for is implemented in RTC 3.0. You can learn about it here, with this post on Calculate Attribute providers: https://jazz.net/wiki/bin/view/Main/CalculatedAttributePresentation

The example in here seems to do exactly what you are talking about.

permanent link
Jorge Diaz (8664234) | answered Nov 15 '10, 12:51 p.m.
JAZZ DEVELOPER
Hello Dan,

yes, this is really what I was looking for, but my question is, if this is still the procedure to implement this use case in RTC 3.0?, or there are enhancenments or more accurate ways since the article is based in 2.0.0.2

Thanks in advance for your help.

Regards,

Jorge.

permanent link
Patrick Streule (4.9k21) | answered Nov 15 '10, 1:53 p.m.
JAZZ DEVELOPER
yes, this is really what I was looking for, but my question is, if
this is still the procedure to implement this use case in RTC 3.0?,
or there are enhancenments or more accurate ways since the article is
based in 2.0.0.2

You don't need to write Java code anymore.

https://jazz.net/wiki/bin/view/Main/CalculatedAttributePresentation

has been obsoleted by:

https://jazz.net/wiki/bin/view/Main/AttributeValueProviders

You can write a script that does the calculation. If it is really about
the Risk attribute: In 3.0 we have the 'Formal' project template that
has the Risk configuration out-of-the-box.

--
Regards,
Patrick
RTC Work Item Component Lead

permanent link
Mark Roberts (1205238) | answered Nov 15 '10, 5:39 p.m.
JAZZ DEVELOPER
Is there a simple way to replicate the risk work-item from the Formal Project Management Process as part of a scrum based process template (in RTC V3) ? It looks very complicated here : https://jazz.net/wiki/bin/view/Main/AttributeValueProviders. I am happy to create the work-item but the calculated fields and Java script look very complex.

Your answer


Register or to post your answer.