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

Migration of category schema

We are in the planning phase for the category schema migration project. In this we need to migrate all assets containing the categories of a particular schema, say abc to the categories of a new schema, say xyz.

We know that the lifecycles which have the condition set as categories of schema abc will not get trigger after the deletion of abc. Also the policies which are using the categories of schema abc will fail after its deletion. So we need to fetch the following details :

1) The name of all communities and their lifecycles which are using the categories of schema abc as the condition.
2) The name of all communities and their lifecycles and states which have the policy using any category of schema abc.
3) The name of all communities and their legacy review process which have the condition as any category of schema abc.

Please let us know how can we fetch the above reports. If there is any way using web URL, DB or API, please let us know the same.

Thanks..Payal

0 votes



One answer

Permanent link
... not formal API for this... the following is a description of some internal API .... so helmets, gloves (no grantee) is given here:

You can use rest API to get XML/json (use the proper accept header on your get, or just add .json or .xml to your url); not sure if it will work on legacy:

Get Communities:
<server url>/internal/communities

For each communities get lifecycles:
<server url>/internal/communities/<community id from above>/lifecycles

For each lifecycle:
<server url>/internal/communities/<community id>/lifecycles/<lifecycle from above>.xml

You can modify, and PUT back (helmet/gloves on).

0 votes

Comments

Hi Gili,

Below 3 URLs constructed based on your input
https://<server_url>/internal/communities/<community id="1844">/lifecycles
https://<server_url>/internal/communities/<community id=1844>/lifecycles
https://<server_url>/internal/communities/<community id=1844 from="" above="">/lifecycles

XML output in the browser shows "Error getting lifcycle null for community null" in OSLC tag.

<oslc:error>
<oslc:statusCode>500</oslc:statusCode>
<oslc:message>Error getting lifcycle null for community null</oslc:message>

Is there any other ease option available to fetch these details ?
If yes, then please share it with more details.

Thank you
Bakiyaraj Arul
bakiyaraj.arul@in.ibm.com
India

Gili's response didn't show the URL clearly enough.

It is:

https://serverurl/ram.was/internal/communities/nnnn/lifecycles

where nnnn is the coummunity id, such as 1844.

In other words <community id="">  means replace everything between and including the < and > with just the given community id.

<lifecycle from="" above=""> means replace everything between and include < and > with a lifecycle id that was returned in the list of lifecycles returned from the previous URI.

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
× 12,027

Question asked: Feb 06 '13, 11:53 a.m.

Question was seen: 4,981 times

Last updated: Feb 13 '13, 10:06 a.m.

Confirmation Cancel Confirm