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

Is there a way to retrieve via oslc all states urls

 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

1

0 votes


Accepted answer

Permanent link
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

0 votes

Comments

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

1 vote

Comments

 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 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
× 10,927
× 515
× 72

Question asked: Jan 20 '15, 6:28 a.m.

Question was seen: 4,348 times

Last updated: Jan 20 '15, 11:16 a.m.

Confirmation Cancel Confirm