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

script based value set using JAVA API

 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.

0 votes



2 answers

Permanent link

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 

0 votes

Comments

 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. 

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. 

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

 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.

0 votes

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,938

Question asked: Mar 14 '17, 4:54 a.m.

Question was seen: 2,374 times

Last updated: Mar 16 '17, 8:43 a.m.

Confirmation Cancel Confirm