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

Add users to project area with OSLC

 How do I use OSLC to add users to multiple Project Areas. This would be helpful since if have many Project Areas this is very time consuming. Another post was answered but used cURL which is not the same as using OSLC.

0 votes


Accepted answer

Permanent link

 The question is missing a product.


As far as I can tell, OSLC is focusing on the domains such as change management, requirements management etc. I am not aware that OSLC works on a common administration API.

Therefore i think there is no OSLC capability for the administrative tasks you ask for. The REST interfaces are the closest to OSLC and my experience so far is that it is usually possible to use OSLC based clients like Lyo for this kind of tasks as well. You might have to play around with the headers. 

Brad Morse selected this answer as the correct answer

0 votes

Comments

Hi Ralph, Since I'm a newbie I won't feel bad asking this - what do you mean this question is missing a project? How do I correct that? 

Brad, you did not mention any product. There are often differences for different products. So select a product when creating the question so it gets tagged. A version number is also usually mandatory. 

 I'm back to wanting to do this, but still am not sure how.


I need to add users to rm for version 7.0.2.

Can you point me to a specific article that shows how to do this, or provide some code here on how to do this?
Thanks.

The question is still not tagged with a product name. Some additional thoughts, though.


1. OSLC does not know the concept of a project, as far as I can tell. So, as far as i am aware, OSLC can not be used to add members to project areas.
2. The available APIs are listed here: https://jazz.net/wiki/bin/view/Deployment/CLMProductAPILanding. If you look through it, the Jazz Foundation REST APIs might be what would work for you. The other API that would help would be the Plain Java Client Libraries that are part of the EWM Jazz SDK. com.ibm.team.process.common.IProcessArea.addMember(IContributorHandle) can be used to add a member.

 


3 other answers

Permanent link

 Thanks Ralph. I'll look into REST or Lyo. Another post gives a method to use cURL.



0 votes

Comments

OSLC is REST based. Lyo or other frameworks are just ways to generate the requests and process the responses. cURL is just another option. Python would work as well. 


Lyo, I have provided some hints and experience here: https://jazz.net/library/article/92596
Some other information that might be useful for experimentation is here: https://rsjazz.wordpress.com/2019/05/13/using-a-rest-client-to-authenticate-to-elm-clm-applications/ 


Permanent link

 Brad, i tried using rest to add users, but ibm keeps sending wrong urls inside project object. Add members wont work, at least, in my case i get 404 error when i make a request to members url. (I cant add a comment, just a answer)

0 votes

Comments

Hi Andre, I would be interested in how you tried using REST. Do you have an online reference for using REST with RTC? What specific methods did you use? 


Permanent link

 I'd expect this to be possible using the process REST API



by posting to the Members collection, assuming your user has the rights to do this - this is foundation code so should apply to all the apps which have projects. Never tried it so can't comment on the details.

This is not an OSLC API, it's a public API proprietary to IBM Enterprise Lifecycle Management

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
× 30

Question asked: Oct 01 '19, 11:32 a.m.

Question was seen: 5,605 times

Last updated: Nov 07 '22, 10:34 a.m.

Confirmation Cancel Confirm