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

Rest api to copy a master lifecycle to existing assets in a community?

My existing assets have legacy review applied ,i plan to migrate to the master lifecycle created for the community.

The <server:port>/context/oslc url works me.

What i would like to know is the rest api to achieve the following :
1)Retrieve the master lifecycle created for a community(added in the scoping section of the lifecycle)
2)Get all the assets from the community which have to be migrated
3)Apply the master lifecycle to them

Please do let me know how i can achieve this.

0 votes



2 answers

Permanent link
None of RAM's API provide administration actions.

That said, there is an internal way to get at them:

<server:port>/context/internal/masterLifecycles

<server:port>/context/internal/communities/<communityID>/lifecycles

They are internal .... so word of caution for you.   You can get a Community's ID when you go to it on the web (check the URL).

Also, the URL above will require the Accept: application/rdf+xml and OSLC-CORE-VERION: 2.0

0 votes

Comments

Hi ,

The rest api <server:port>/context/internal/masterLifecycles gives 400 bad request error.

Is this the correct url?

What is the rest api to get assets in a particular community?


Permanent link
Yep.    Make sure that you have the accept/oslc headers, and admin uid ... 7.5.1.1

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: Oct 16 '12, 12:16 p.m.

Question was seen: 4,302 times

Last updated: Oct 22 '12, 9:17 a.m.

Confirmation Cancel Confirm