It's all about the answers!

Ask a question

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


Manjiri Kamat (5132325) | asked Oct 16 '12, 12:16 p.m.
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.

2 answers



permanent link
Gili Mendel (1.8k56) | answered Oct 17 '12, 11:31 a.m.
JAZZ DEVELOPER
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

Comments
Manjiri Kamat commented Oct 22 '12, 5:26 a.m.

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
Gili Mendel (1.8k56) | answered Oct 22 '12, 9:16 a.m.
JAZZ DEVELOPER
edited Oct 22 '12, 9:17 a.m.
Yep.    Make sure that you have the accept/oslc headers, and admin uid ... 7.5.1.1

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.