It's all about the answers!

Ask a question

How to do attribute customization using plugin?


Asha Faldu (1110) | asked Mar 20 '17, 2:08 a.m.

  Hello Team,

 

I am trying to develop a code for attribute customization using plugin. So for that I followed a below article

https://jazz.net/wiki/bin/view/Main/AttributeCustomization#Providing_new_customizations_implemented_in_Java 

 

I am able to do all the steps and also it shows in provider for calculated value at below path 

In eclipse -> process configuration -> project configuration -> configuration data -> work items -> attribute customization -> calculated values

 

In order to use the newly created provider of calculated value, we go to 

Project Configuration > Configuration Data > Work Items > Types and Attributes

But it does not show newly created provider value in calculated value.

 

If I normally add script for calculated values through rtc then it shows in Process configuration source file like

 

<valueProvider id="com.ibm.team.workitem.valueproviders.VALUE_PROVIDER._c_WrkPgkEeahaYViSqPJvw" name="TestButton" providerId="com.ibm.team.workitem.shared.common.internal.valueProviders.ScriptAttributeValueProvider">

<script class="com.example.ValueProvider" path="/workitem/scripts/common/testbutton.js"/> 
</valueProvider>

 

 

but when i add above newly created provider in calculated values provider then it shows in Process configuration source file like

 

<valueProvider id="com.ibm.team.workitem.valueproviders.VALUE_PROVIDER._prxPsArvEeePNOSRKolkGw" name="test String List" providerId="com.ibm.js.team.workitem.attribute.customization.providers.SampleStringListCalculatedProvider">   

  </valueProvider>

              

       

So do I need to make changes in Process configuration source file.

 

I also followed a below article also but i did not get any luck on that

https://rsjazz.wordpress.com/2013/06/26/attribute-customization-java-based-value-providers-conditions-and-validators/

 

Please Help

 

How can I map this script to particular attribute?

   

One answer



permanent link
Ralph Schoon (63.3k33646) | answered Mar 20 '17, 11:00 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
edited Mar 20 '17, 11:00 a.m.

 A Java attribute customization works like any other attribute customization and you only have to add configuration data if the attribute customization provider needs it.


I have a hard time believing https://rsjazz.wordpress.com/2013/06/26/attribute-customization-java-based-value-providers-conditions-and-validators/ won't work, as I have used it often after developing it.

If your example derived from that does not work on Jetty (Web UI) and in the Eclipse debug client and you don't know what Jetty or an Eclipse Debug client is follow https://rsjazz.wordpress.com/2015/09/30/learning-to-fly-getting-started-with-the-rtc-java-apis/ to find out. If you want to do this kind of stuff, you have to set up I have set up the RTC SDK otherwise you wast your time. 

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.