It's all about the answers!

Ask a question

Is there a way to get the name of workflow associated with a type of workitem?


Lipi Das (2612635) | asked Aug 06 '13, 2:50 a.m.

I know it appears in rtc_cm:state when I query for any particular workitem number, but what I want to know is if there is a way to get the name of workflow associated with a type of workitem without the need of querying a specific workitem number.

One answer



permanent link
Dinesh Kumar B (4.1k413) | answered Aug 06 '13, 3:57 a.m.
JAZZ DEVELOPER
I use the resource shape for the work item type to reach the workflow but I suspect there might be a direct/cleaner way to do it...

To reach the resource shape : Root Services > Work Items Catalog > Services.xml > Creation Factory Node > Resource Shape

<oslc:ResourceShape rdf:about="https://localhost:403/ccm/oslc/context/_wfwAEu_QEeKkTY2J0oMbXw/shapes/workitems/defect">

Now from the response to the POST on Resource Shape, look for allowed values for some state:

    <oslc:name rdf:datatype="http://www.w3.org/2001/XMLSchema#string">state</oslc:name>
        <oslc:defaultValue/>
        <oslc:allowedValues>
            <oslc:AllowedValues rdf:about="https://localhost:403/ccm/oslc/context/_wfwAEu_QEeKkTY2J0oMbXw/shapes/workitems/defect/property/internalState/allowedValues">
                <oslc:allowedValue rdf:resource="https://localhost:403/ccm/oslc/workflows/_wfwAEu_QEeKkTY2J0oMbXw/states/com.ibm.team.workitem.defectWorkflow/4"/>

If this answers, please mark this as answered.

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.