It's all about the answers!

Ask a question

How to change rtc status field via REST api


Nicole Cherches (113) | asked Mar 24 '22, 4:56 a.m.
I am referring to this post, which however did not really provide an answer to my problem:


RTC status is shown as read only in the api, but is actually modifiable in the ui.
Is there any way to change the state of a workitem via REST Api?
Specifically I am looking for the xml+rdf representation needed, to send a partial update similar to this:
<rdf:RDF
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:dcterms="http://purl.org/dc/terms/"
    xmlns:oslc_cm="http://open-services.net/ns/cm#"
    xmlns:rtc_ext="http://jazz.net/xmlns/prod/jazz/rtc/ext/1.0/"
    xmlns:oslc_cmx="http://open-services.net/ns/cm-x#"
    xmlns:rtc_cm="http://jazz.net/xmlns/prod/jazz/rtc/cm/1.0/"
    xmlns:oslc="http://open-services.net/ns/core#" > 
  <rdf:Description rdf:about="https://localhost:9443/jazz/resource/itemOid/
com.ibm.team.workitem.WorkItem/_xoNikpHMEeC_rYSykUtXXA">
    .....
    .....
    <oslc_cm:status>Invalid</oslc_cm:status>
    .....
    .....
  </rdf:Description>
</rdf:RDF>
    

One answer



permanent link
Ralph Schoon (62.7k33643) | answered Mar 24 '22, 4:58 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
edited Mar 24 '22, 5:45 a.m.
The state of the work item is read-only. You have to perform a workflow action to change the state. For all your questions please seeĀ https://rsjazz.wordpress.com/2022/02/02/ewm-work-item-oslc-cm-api/

Your answer


Register or to post your answer.