It's all about the answers!

Ask a question

How can I get a human-meaningful 'state' string for a work item from the OSLC representation?

Evan Hughes (2.4k1318) | asked Mar 08 '15, 9:13 p.m.
edited Mar 08 '15, 9:15 p.m.
Using the OSLC query docs, I'm able to get the OSLC representation of a work item. I'd like to determine the human-meaningful name of the work item's current state, and whether that state is considered resolved. 

Each work item has a state field that looks like:
'rtc_cm:state': {
    'rdf:resource': 'https://...:9443/jazz/oslc/workflows/_1w8aQEmJEduIY7C8B09Hyw/states/bugzillaWorkflow/3'
I'd like to know how to map that and determine if it's resolved. There are other fields that hint at whether the state is resolved (e.g. 'rtc_cm:resolvedBy') but don't provide a hint that would tell a user if the resolution involved code changes, or that the work item was closed as invalid/dupe/out-of-scope/etc. 

Accepted answer

permanent link
Evan Hughes (2.4k1318) | answered Mar 08 '15, 9:19 p.m.
Turns out I just have to query the resource. For whatever reason Chrome wasn't rendering the content at the URI, so I assumed there wasn't anything there. 
Geoffrey Clemm selected this answer as the correct answer

Your answer

Register or to post your answer.