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

buildClient. getBuildDefinition(, myProgressMonitor) ,How know Field_ID

 I tried to develop RTC Client using RTC API and now this client  can connect to RTC Server ,

any one can illustrate how to get Field values from  RTC server  and how to know
Field ID which used in the following  Code .

buildClient. getBuildDefinition(<
Field_ID>, myProgressMonitor)

Thanks for your Cooperation and Understanding .

0 votes



One answer

Permanent link
Start here: https://rsjazz.wordpress.com/2015/09/30/learning-to-fly-getting-started-with-the-rtc-java-apis/ . You will need to pass this as a parameter to the call, or you will have to query the data for some information. In the example below the Build Definition ID is hardcoded. You could have it as a parameter of type string. The information can be read in the RTC UI's - the name of the build definition in this case.
       ITeamBuildClient buildClient = (ITeamBuildClient) teamRepository.getClientLibrary(ITeamBuildClient.class);
        IBuildDefinition buildDefinition = buildClient.getBuildDefinition("Production", monitor);


Or you need to find some API to find all the data (all build definitions), resolve and get the information from them and narrow it down. You would still need some information for how to narrow it down.

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

Question asked: Nov 12 '15, 3:10 a.m.

Question was seen: 2,671 times

Last updated: Nov 12 '15, 4:22 a.m.

Confirmation Cancel Confirm