It's all about the answers!

Ask a question

APIs required for custom Java Script


kaushambi Singh (5611611) | asked Jan 19 '10, 8:45 a.m.
Which APIs need to be imported for custom JavaScript Provider stated in ExposureProvider.js in a 15 min video on https://jazz.net/wiki/bin/view/Main/AttributeValueProviders.
This is taking into account RTC2.0.0.2 environment.

3 answers



permanent link
kaushambi Singh (5611611) | answered Jan 19 '10, 9:14 a.m.
From the link https://jazz.net/wiki/bin/view/Main/AttributeValueProviders,
We have configurable built-in provider for 'Role Based User Provider'. I believe that this means if a project is created in RTC 2.0.0.2 environment using Scrum Process template(as seen in the video attached on the link), the built-in provider should be visible like <valueSetProvider> and <attributeDefinition> for customization in Process Configuration Source. But I don't see them as built-in.Do we need to explicitly induce these tags for customization.Please reply.

permanent link
Patrick Streule (4.9k21) | answered Jan 19 '10, 10:08 a.m.
JAZZ DEVELOPER
From the link
https://jazz.net/wiki/bin/view/Main/AttributeValueProviders,
We have configurable built-in provider
for 'Role Based User Provider'. I believe that this
means if a project is created in RTC 2.0.0.2 environment using Scrum
Process template(as seen in the video attached on the link), the
built-in provider should be visible like<valueSetProvider> and
attributeDefinition> for customization in Process Configuration
Source. But I don't see them as built-in.Do we need to explicitly
induce these tags for customization.Please reply.

Support for calculated attributes was introduced in 2.0.0.2 for early
adopters. The feature, especially when it comes to the JS API, is
*preliminary* and full support will only be available in 3.0.

That said, the complete example of a calculated attribute 'Risk
Exposure' is documented on the Wiki page in the example section. You can
copy it from there.

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

As it is an example only, it is not part of any process templates.

--
Regards,
Patrick
Jazz Work Item Team

permanent link
kaushambi Singh (5611611) | answered Jan 22 '10, 8:21 a.m.
This is regarding the Risk Exposure example given on https://jazz.net/wiki/bin/view/Main/AttributeValueProviders#Examples link. In Package Explorer, How do we define the structure of javascript class(ExposureProvider.js). Do we need to create java project and then create a javascript file in it to write the dojo scripts. What is the com.example.common package in ExposureProvider.js? Is it a package we need to create? Please help me understanding the creation of folders in package explorer for ExposureProvider.js.

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.