It's all about the answers!

Ask a question

Migration of category schema


iRAM Administrator (3152156135) | asked Feb 06 '13, 11:53 a.m.
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

One answer



permanent link
Gili Mendel (1.8k56) | answered Feb 07 '13, 10:28 a.m.
JAZZ DEVELOPER
... 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).


Comments
iRAM Administrator commented Feb 13 '13, 12:11 a.m.

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


Rich Kulp commented Feb 13 '13, 10:06 a.m.
FORUM MODERATOR / JAZZ DEVELOPER

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 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.