It's all about the answers!

Ask a question

Is there a way to retrieve via oslc all states urls


0
1
Argeu Aprigio Alcantara (2113) | asked Jan 20 '15, 6:28 a.m.
 Is there a service that shows all sates urls?
I found a few by searching through workitems, but I wanna know if there's a service that returns all of them, if not, how to know if there's more?
The version of rtc I'm using is 5.0
https://localhost:9443/ccm/oslc/workflows/_VXfnAFntEeSkPKc3ubLimQ/states/orientacao_operacao_workflow
https://localhost:9443/ccm/oslc/workflows/_VXfnAFntEeSkPKc3ubLimQ/states/defeito_producao
https://localhost:9443/ccm/oslc/workflows/_VXfnAFntEeSkPKc3ubLimQ/states/projeto_fluxo
https://localhost:9443/ccm/oslc/workflows/_VXfnAFntEeSkPKc3ubLimQ/states/entrega_fluxo
https://localhost:9443/ccm/oslc/workflows/_VXfnAFntEeSkPKc3ubLimQ/states/com.ibm.team.workitem.taskWorkflow

Accepted answer


permanent link
Argeu Aprigio Alcantara (2113) | answered Jan 20 '15, 9:37 a.m.
I checked it out, but still not what I'm looking for.
I need the equivalent of this: 
Select distinct status_id
from workitem_statuses 
where project_area_id = _VXfnAFntEeSkPKc3ubLimQ
and the return would be a xml like this:

<rdf:RDF>
 <rdf:Description rdf:about="https://localhost:9443/ccm/oslc/contexts/_VXfnAFntEeSkPKc3ubLimQ/states">
<rdfs:member rdf:resource="https://localhost:9443/ccm/oslc/workflows/_VXfnAFntEeSkPKc3ubLimQ/states/entrega_fluxo" />
</rdf:Description>
</rdf:RDF>

UPDATE:
I found this url that I must send the types and it returns its possible status:
https://localhost:9443/ccm/oslc/context/_VXfnAFntEeSkPKc3ubLimQ/shapes/workitems/:type_id/property/internalState/allowedValues

Ralph Schoon selected this answer as the correct answer

Comments
Ralph Schoon commented Jan 20 '15, 11:16 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

I accepted this answer for you, as I think you found the solution. Please let me know if that is not correct. Thanks!

One other answer



permanent link
Jean-Luc Johnson (8125) | answered Jan 20 '15, 7:15 a.m.
Hello I believe that you are looking for a service to display the exact set of resources available within your OSLC application. In that case please check the Tracked resource set spec - TRS at http://open-services.net/wiki/core/TrackedResourceSet-2.0/ .
Definition:
The Tracked Resource Set protocol allows a server to expose a set of resources in a way that allows clients to discover the exact set of resources in the set, to track all additions to and removals from the set, and to track state changes to all resources in the set. The protocol does not assume that clients will dereference the resources. ...

The link to the TRS document for RTC is https://localhost:9443/ccm/oslc/workitem/trs

Best regards,


Comments
Argeu Aprigio Alcantara commented Jan 20 '15, 8:08 a.m.

 I digged a little more and I found this documentation that says that the user must be TRS Consumer Internal, I have only one license for it, so I can only have one user with it, but will I be able to change which user have it later?

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.