IBM Support

How to remove subscribers by RESTClient

Question & Answer


Question

How do you remove subscribers by RESTClient when using IBM Rational Team Concert (RTC)?

Cause

You want to remove all subscribers in a work item at once instead of using Web Client and Eclipse Client.

Answer

Procedure:

Follow the instructions to remove subscribers in a work item by RESTClient.

  1. Install the RESTClient Plug-in on FireFox from the following site.

    https://addons.mozilla.org/en-US/firefox/addon/restclient/


  2. Log on a project area in RTC Web client.

  3. Open the RESTClient.

  4. Select GET Method.

  5. Type the following URL.


    https://<server name>:9443/ccm/oslc/workitems/<work item number>?oslc_cm.properties=rtc_cm:subscribers


    For example if your server name is https://vappwin2k8r2ja:9443 you use the work item number 45399

    It looks like this:
    https://vappwin2k8r2ja:9443//ccm/oslc/workitems/45399?oslc_cm.properties=rtc_cm:subscribers


  6. Add 2 headers.

    Accept: applicaion/rdf+xml

    Content-Type: application/rdf+xml

  7. Click SEND.

  8. Copy the Response Body.


    <rdf:RDF
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:oslc_cm="http://open-services.net/ns/cm#"
    xmlns:rtc_cm="http://jazz.net/xmlns/prod/jazz/rtc/cm/1.0/" >
    <rdf:Description rdf:about="https://<server name>:9443//ccm/oslc/workitems/<work item number>?oslc_cm.properties=rtc_cm:subscribers">
    <rdf:type rdf:resource="http://open-services.net/ns/cm#ChangeRequest"/>
    <rtc_cm:subscribers rdf:resource="https://<server name>:9443/jts/users/taro"/>
    </rdf:Description>
    </rdf:RDF>

  9. Past into the BODY and remove the line of <rtc_cm:subscribers >.


    <rdf:RDF
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:oslc_cm="http://open-services.net/ns/cm#"
    xmlns:rtc_cm="http://jazz.net/xmlns/prod/jazz/rtc/cm/1.0/" >
    <rdf:Description rdf:about="https://<server name>:9443//ccm/oslc/workitems/<work item number>?oslc_cm.properties=rtc_cm:subscribers">
    <rdf:type rdf:resource="http://open-services.net/ns/cm#ChangeRequest"/>
    </rdf:Description>
    </rdf:RDF>

  10. Change PUT METHOD and click SEND.

  11. Verify the Response Body.

  12. Verify no subscribers in the Work item in RTC web client

[{"Product":{"code":"SSUC3U","label":"IBM Engineering Workflow Management"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"Work Items","Platform":[{"code":"PF033","label":"Windows"}],"Version":"4.0;4.0.1;4.0.2;4.0.3;4.0.4;4.0.5;4.0.6","Edition":"","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]

Product Synonym

Rational Team Concert

Document Information

Modified date:
16 June 2018

UID

swg21671563