It's all about the answers!

Ask a question

script based value set using JAVA API


Jayshri Burde (2817) | asked Mar 14 '17, 4:54 a.m.
edited Mar 14 '17, 5:08 a.m.

 Hi,


I am trying to fetch the values in attribute (Using JAVA API) In case of script based value set.

Attribute type is string List type.

My requirement is to populate values using JAVA API.

2 answers



permanent link
Ralph Schoon (60.5k33643) | answered Mar 14 '17, 6:03 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
edited Mar 14 '17, 6:54 a.m.

This question it totally confusing, you might want to put a bit more effort into it and provide the basic information. Please see How should I ask a question in the Forum if I want to receive useful answers? for some tips.


You are asking about Script based and Java API - this does not compute. Either you talk about JavaScript or Java.
You say you are trying to fetch attribute value and then you make a statement about a completely different requirement to write them. This also does not compute. Please read How should I ask a question in the Forum if I want to receive useful answers?

There is no question in this post.

If you want to get and set values for work item attributes using the Java API, look into 


Comments
Jayshri Burde commented Mar 14 '17, 7:25 a.m. | edited Mar 14 '17, 7:44 a.m.

 Hi Ralph,


Thanks for your quick response.

I will explain you giving example.
In work Item for project attribute suppose we have project ABC,DEF,XYZ.

We are populating these values from script so user can select one of them. Now requirement is to populate these vales(ABC,DEF,XYZ) using JAVA API.

Any help would greatly appreciated. 


Ralph Schoon commented Mar 14 '17, 7:50 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

This does not make it a lot clearer to me. See https://rsjazz.wordpress.com/2013/06/26/attribute-customization-java-based-value-providers-conditions-and-validators/ for attribute customization using Java. 


Jayshri Burde commented Mar 16 '17, 6:19 a.m. | edited Mar 16 '17, 8:32 a.m.

HI Ralph,


I am following below link 

In that Providing new customization implemented in Java.

When I am  configuring via eclipse client getting below error.
Missing requirement: Plugin 1.0.0.201703161521 (com. . . .plugin 1.0.0.201703161521) requires 'bundle com.ibm.team.workitem.common 3.2.400' but it could not be found

Any help would greatly appreciated. 


permanent link
Ralph Schoon (60.5k33643) | answered Mar 16 '17, 8:43 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
edited Mar 16 '17, 8:43 a.m.

 I can not fix or diagnose your deployment and dependency problems. Maybe you have developed the code with a never version of RTC than you try to deploy into. Since you seem to be incapable of following How should I ask a question in the Forum if I want to receive useful answers? and provide information such as versions there is no way we can tell.


You can look at the code attached to https://rsjazz.wordpress.com/2013/06/26/attribute-customization-java-based-value-providers-conditions-and-validators/ and https://rsjazz.wordpress.com/2015/06/19/a-custom-condition-to-make-attributes-required-or-read-only-by-role/ and look at the META-INF/MANIFEST.MF and try to understand what is wrong. For example I usually remove the version number because the API is relatively stable and I know I can likely deploy thin in older versions as well.

Also, test this Jetty first. Follow https://rsjazz.wordpress.com/2015/09/30/learning-to-fly-getting-started-with-the-rtc-java-apis/ and do the extensions workshop to set up your environment with the SDK. 

This is pretty much all I can do. Debugging dependency problems in the forum has always been imposisble, especially if the information in the questions is so scarce like in this case. Good luck.

Your answer


Register or to post your answer.