API to query assets that use a specific lifecycle
![](http://jazz.net/_images/myphoto/6c5fa9e1e4ba7344dfa26cf0db28deb5.jpg)
5 answers
![](http://jazz.net/_images/myphoto/6c5fa9e1e4ba7344dfa26cf0db28deb5.jpg)
why dont you tag each lifecycle? In that case you dont need to touch the APIs.
Is there a way to determine through Java API which assets in a community use a specific Lifecycle or legacy review process?
I am not sure what you may be referring to. Do you mean tagging an asset manually with a string based on the lifecycle that is applied to it? Or writing a policy to do so automatically? Can you please elaborate?
![](http://jazz.net/_images/myphoto/6c5fa9e1e4ba7344dfa26cf0db28deb5.jpg)
Unfortunately we are not indexing the Lifecycles. You can do a search by workflow id (but this will include all lifecycles based on the same workflow)
To do this you can use the following Lucene search index if the workflow id you were interested in was com.ibm.ram.type.standard...
_stateWorkflowId_:(com.ibm.ram.type.standard)
You can add a community to make sure you get only assets in your community using a specific workflow. For example you could use the following Search Shortcut to get all assets in workflow com.ibm.ram.type.standard and community forum14718.
ramSearch:(1txt%2C_stateWorkflowId_%3A%28com.ibm.ram.type.standard%29%24fGroup%2Cforum14718)
To do this you can use the following Lucene search index if the workflow id you were interested in was com.ibm.ram.type.standard...
_stateWorkflowId_:(com.ibm.ram.type.standard)
You can add a community to make sure you get only assets in your community using a specific workflow. For example you could use the following Search Shortcut to get all assets in workflow com.ibm.ram.type.standard and community forum14718.
ramSearch:(1txt%2C_stateWorkflowId_%3A%28com.ibm.ram.type.standard%29%24fGroup%2Cforum14718)
![](http://jazz.net/_images/myphoto/6c5fa9e1e4ba7344dfa26cf0db28deb5.jpg)
why dont you tag each lifecycle? In that case you dont need to touch the APIs.
I assume what http://jazz.net/forums/profile.php?mode=viewprofile&u=17199 suggested, is to use a policy to categorize the asset a certain way if you are on a legacy, or not a legacy lifecycle.