It's all about the answers!

Ask a question

Create LPA projects via API... anyone have a reasonable java httpclient that handles jazz authentication? help


sam detweiler (12.5k6195201) | asked Mar 19 '14, 3:17 p.m.
 we need to automate lifecycle project creation and followon setup. 

we have 10 little steps to add after the project gets created.. so why not just do it all at once.. 
we've been reviewing this article
https://jazz.net/wiki/bin/view/Main/LPAAPIExampleClient

which is pretty comprehensive and certainly along the direction we want to go..

but (isn't there always one of these?!)

the code that does the actual work (SampleHttpClient), isn't presented. 

I can't spend another couple weeks trying to figure this out.. I've got customers waiting to get on the system I can't get to cause it takes too long.. 

anyone have any good pointers to something productive to use to create lcp projects, reset the ccm project parent to our shared project, download the report resources needed, add the users to the ldap group, then jazz, set their licenses, add them to the project and teams, set their roles, create the initial dashboard, 

we want to use Java, cause we have the rest already done, and its cut & paste or some other glueing approach. 


 

One answer



permanent link
Canberk Akduygu (99237371) | answered Apr 25 '14, 10:22 a.m.
Hi Sam,

I didnt understand what you mean by "SampleHttpClient isn't present".

All the codes that you need is in that page, I developped the LPA client and also integrated with HP PPM. I assigns roles to users also.

I believe you should just let Jazz do the licensing during nightly user import. There's a OOTB licensing option if you go to jts/admin#action=com.ibm.team.repository.admin.manageLicenses

If you add report resources to your project template, you dont have to worrry about them. They will be present when the project is created.

Your case is so special if you'd like to do all those stuff programmatically. You'll need to use RTC SDK,REST Services,may be Eclipse Lyo and other stuff...

Comments
sam detweiler commented Apr 25 '14, 10:42 a.m. | edited Apr 25 '14, 10:53 a.m.

>I didnt understand what you mean by "SampleHttpClient isn't present".
from the linked page

>The only code that has been ommitted is the bootstrapping of the HTTP client that is used to make requests to the LPA server and answer an authentication challenge

that is the SampleHttpClient class used in the 1st line of code onward.

HttpClient httpClient = SampleHttpClient.newInstance();

the customer didn't use the nightly import, too many employees
and they didn't have a data process model that would support filtering only those to import.

report resources are not inherited on shared project template models like this customer is using.
(create project with unconfigured template then use process from another project).

We were able to take the sample code, create an http client (as suggested)
and add the other code so that the customer has a tool to use.

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.