It's all about the answers!

Ask a question

How to use REST API/curl to access change requests in Jazz?


Phillip Viana (1146) | asked Aug 11 '17, 1:51 p.m.

Hi

Is there a way to access change request information via cURL and the REST API? (not Java)

I was able to log in and store the cookies in a text file. When I send a request to /jazz/rootservices this is what I get:

HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Cache-Control: public
Expires: Fri, 11 Aug 2017 17:55:29 GMT
x-com-ibm-team-scenario: 9.85.162.151
ETag: "vHCBtU59FWakHsSucPlNXVhaQIs="
Date: Fri, 11 Aug 2017 17:50:29 GMT
Content-Type: application/rdf+xml;charset=UTF-8
Transfer-Encoding: chunked
 
<?xml version="1.0"?>

<rdf:Description
     xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
     xmlns:dc="http://purl.org/dc/terms/"
     xmlns:jfs="http://jazz.net/xmlns/prod/jazz/jfs/1.0/"
     xmlns:jd="http://jazz.net/xmlns/prod/jazz/discovery/1.0/"
     xmlns:jdb="http://jazz.net/xmlns/prod/jazz/dashboard/1.0/"
     xmlns:jp06="http://jazz.net/xmlns/prod/jazz/process/0.6/"
     xmlns:jp="http://jazz.net/xmlns/prod/jazz/process/1.0/"
     xmlns:jtp="http://jazz.net/xmlns/prod/jazz/jtp/0.6/"
     xmlns:ju="http://jazz.net/ns/ui#"
     xmlns:oslc="http://open-services.net/ns/core#"
     xmlns:trs="http://jazz.net/ns/trs#"
     xmlns:trs2="http://open-services.net/ns/core/trs#"
     rdf:about="https://myjazz/jazz/rootservices">

  <!--
          Default root service registry document for an RTC server.
          Contains contributions for core JFS services and components
          and OSLC Change Management.
          Specification is available at https://jazz.net/wiki/bin/view/Main/RootServicesSpec
   -->

  <!-- Add descriptive title here -->
  <dc:title xml:lang="en">Change and Configuration Management</dc:title>

  <!-- List of friends (applications known to this application) -->
  <jd:friends
      rdf:resource="https://myjazz/jazz/friends" />
      
  <!-- Discovery service for the JFS server and associated applications -->
  <jd:discovery
      rdf:resource="https://myjazz/jazz/discovery" />
      
  <!-- Viewlet-related properties -->
  <jd:viewletServiceRoot
        rdf:resource="https://myjazz/jazz" />

  <jd:viewletWebUIRoot
        rdf:resource="https://myjazz/jazz" />

  <!-- Default root service registry document for a JFS server. -->

  <jd:jsaSsoEnabled>false</jd:jsaSsoEnabled>

  <jfs:oauthRequestTokenUrl
        rdf:resource="https://myjazz/jazz/oauth-request-token" />
 
  <jfs:oauthAccessTokenUrl
        rdf:resource="https://myjazz/jazz/oauth-access-token" />
       
  <jfs:oauthRealmName>Jazz</jfs:oauthRealmName>
  <jfs:oauthDomain>https://myjazz/jazz</jfs:oauthDomain>
       
  <jfs:oauthUserAuthorizationUrl
        rdf:resource="https://myjazz/jazz/oauth-authorize" />
       
  <jfs:oauthRequestConsumerKeyUrl
      rdf:resource="https://myjazz/jazz/oauth-request-consumer" />
     
  <jfs:oauthApprovalModuleUrl
      rdf:resource="https://myjazz/jazz/_ajax-modules/com.ibm.team.repository.AuthorizeOAuth" />     
 
  <!-- JAuth URLS -->
 
  <jfs:jauthIssueTokenUrl
      rdf:resource="https://myjazz/jazz/jauth-issue-token" />
     
  <jfs:jauthCheckTokenUrl
      rdf:resource="https://myjazz/jazz/jauth-check-token" />
     
  <jfs:jauthRevokeTokenUrl
      rdf:resource="https://myjazz/jazz/jauth-revoke-token" />
     
  <jfs:jauthCheckAuthUrl
      rdf:resource="https://myjazz/jazz/jauth-check-auth" />
     
  <jfs:jauthProxyUrl
      rdf:resource="https://myjazz/jazz/jauth-proxy" />
     
  <!-- service for finding users and getting user info -->
  <jfs:users
        rdf:resource="https://myjazz/jts/users"   />
 
  <!-- Service to redirect to the resource that represents the authenticated user -->
  <jfs:currentUser
        rdf:resource="https://myjazz/jazz/whoami"   />
       
  <!-- JFS storage service -->
  <jfs:storage
        rdf:resource="https://myjazz/jazz/storage"   />
 
  <!-- JFS SPARQL query service -->
  <jfs:query
        rdf:resource="https://myjazz/jazz/query"   />

  <!-- Put RTC changes in here, so we do not have to merge all the time : START -->

  <!-- Change Management service catalog -->
  <oslc_cm:cmServiceProviders
          xmlns:oslc_cm="http://open-services.net/xmlns/cm/1.0/"
          rdf:resource="https://myjazz/jazz/oslc/workitems/catalog" />
         
  <oslc_config:cmServiceProviders
          xmlns:oslc_config="http://open-services.net/ns/config#"
          rdf:resource="https://myjazz/jazz/rtcoslc/catalog" />
         
  <oslc_scm:scmServiceProviders
          xmlns:oslc_scm="http://open-services.net/xmlns/scm/1.0/"
          rdf:resource="https://myjazz/jazz/oslc-scm/catalog" />
         
  <jd:oslcCatalogs>
        <oslc:ServiceProviderCatalog rdf:about="https://myjazz/jazz/oslc/workitems/catalog">
            <oslc:domain rdf:resource="http://open-services.net/ns/cm#"/>
        </oslc:ServiceProviderCatalog>
  </jd:oslcCatalogs>

  <jd:oslcCatalogs>
        <oslc:ServiceProviderCatalog rdf:about="https://myjazz/jazz/oslc-scm/catalog">
            <oslc:domain rdf:resource="http://open-services.net/ns/scm#"/>
        </oslc:ServiceProviderCatalog>
  </jd:oslcCatalogs>
 
  <!-- Change Management Tracked Resource Set 1.0 Provider -->
  <rtc_cm:trackedResourceSetProvider xmlns:rtc_cm="http://jazz.net/xmlns/prod/jazz/rtc/cm/1.0/">
          <trs:TrackedResourceSetProvider>
            <trs:trackedResourceSet rdf:resource="https://myjazz/jazz/oslc/workitems/trs" />
            <dc:title>TRS 1.0 for RTC Resources</dc:title>
            <dc:description>TRS 1.0 feed for RTC resources</dc:description>
            <dc:type     rdf:resource="http://open-services.net/ns/cm#" />
            <oslc:domain rdf:resource="http://open-services.net/ns/cm#" />           
            <oslc:domain rdf:resource="http://open-services.net/ns/config#" />           
          </trs:TrackedResourceSetProvider>
 </rtc_cm:trackedResourceSetProvider>
 
   <!-- Change Management Tracked Resource Set 2.0 Provider -->
  <rtc_cm:trackedResourceSetProvider xmlns:rtc_cm="http://jazz.net/xmlns/prod/jazz/rtc/cm/1.0/">
          <trs2:TrackedResourceSet>
            <trs2:trackedResourceSet rdf:resource="https://myjazz/jazz/oslc/workitems/trs2" />
            <dc:title>TRS 2.0 for RTC Resources</dc:title>
            <dc:description>TRS 2.0 feed for RTC resources</dc:description>
            <dc:type     rdf:resource="http://open-services.net/ns/cm#" />
            <oslc:domain rdf:resource="http://open-services.net/ns/cm#" />           
            <oslc:domain rdf:resource="http://open-services.net/ns/config#" />           
          </trs2:TrackedResourceSet>
  </rtc_cm:trackedResourceSetProvider>
 
  <!--  Process Component Tracked Resource Set 2.0 Provider -->
  <rtc_cm:trackedResourceSetProvider xmlns:rtc_cm="http://jazz.net/xmlns/prod/jazz/rtc/cm/1.0/">
    <trs2:TrackedResourceSet>
        <trs2:trackedResourceSet rdf:resource="https://myjazz/jazz/process-trs2" />
        <dc:title>TRS 2.0 for RTC Process Resources</dc:title>
        <dc:description>TRS 2.0 feed for process resources in RTC</dc:description>
        <dc:type     rdf:resource="http://jazz.net/ns/process#" />
        <oslc:domain rdf:resource="http://jazz.net/ns/process#" />
    </trs2:TrackedResourceSet>
  </rtc_cm:trackedResourceSetProvider>
 
  <!--  SCM Component Tracked Resource Set 2.0 Provider -->
  <rtc_cm:trackedResourceSetProvider xmlns:rtc_cm="http://jazz.net/xmlns/prod/jazz/rtc/cm/1.0/">
    <trs2:TrackedResourceSet>
        <trs2:trackedResourceSet rdf:resource="https://myjazz/jazz/rtcoslc/scm/reportable/trs/cs" />
        <dc:title>TRS 2.0 for RTC SCM Resources</dc:title>
        <dc:description>TRS 2.0 feed for SCM resources in RTC</dc:description>
        <dc:type     rdf:resource="http://jazz.net/ns/scm#" />
        <oslc:domain rdf:resource="http://jazz.net/ns/scm#" />
    </trs2:TrackedResourceSet>
  </rtc_cm:trackedResourceSetProvider>
  <rtc_cm:trackedResourceSetProvider xmlns:rtc_cm="http://jazz.net/xmlns/prod/jazz/rtc/cm/1.0/">
    <trs2:TrackedResourceSet>
        <trs2:trackedResourceSet rdf:resource="https://myjazz/jazz/rtcoslc/scm/cslink/trs" />
        <dc:title>TRS 2.0 for RTC SCM Link Resources</dc:title>
        <dc:description>TRS 2.0 feed for SCM link resources in RTC</dc:description>
        <dc:type     rdf:resource="http://jazz.net/ns/scm#" />
        <oslc:domain rdf:resource="http://jazz.net/ns/scm#" />
    </trs2:TrackedResourceSet>
  </rtc_cm:trackedResourceSetProvider>

         
  <jd:registration
     rdf:resource="https://myjazz/jazz/service/com.ibm.team.repository.service.internal.setup.IRegistrationHandlerService" />
    
   <jfs:setupWizardDescriptor
     rdf:resource="https://myjazz/jazz/service/com.ibm.team.repository.service.internal.setup.ISetupWizardDescriptorService"/>
    
   <jfs:adminWebUI rdf:resource="https://myjazz/jazz/admin"/>

  <!-- Put RTC changes in here, so we do not have to merge all the time : END -->
 
  <!-- JFS indexing service -->
  <jfs:indexing
        rdf:resource="https://myjazz/jazz/indexing"   />
       
  <!-- JFS revisions and history of storage resources -->       
  <jfs:history
        rdf:resource="https://myjazz/jazz/history"   />
 
  <!-- JFS full text search -->
  <jfs:search
        rdf:resource="https://myjazz/jazz/search"   />

  <!-- JFS baseline service -->
  <jfs:baselines
        rdf:resource="https://myjazz/jazz/baselines"   />
       
  <!-- JFS mailer service -->
  <jfs:mailer
        rdf:resource="https://myjazz/jazz/mailer"   />        
 
    <!-- JFS bulk operations service -->
  <jfs:bulkOperations
        rdf:resource="https://myjazz/jazz/bulk"   />
 
  <!-- JFS changes service -->
  <jfs:changes
      rdf:resource="https://myjazz/jazz/changes" />
 
  <!-- Dashboards service (provisional) -->
  <jdb:dashboards
        rdf:resource="https://myjazz/jazz/dashboards" />       

  <!-- Widget Catalog -->   
  <ju:widgetCatalog
      rdf:resource="https://myjazz/jazz/jfs/WidgetCatalog"/>
 
  <!-- Web Welcome -->    
  <jd:infocenterRoot
      rdf:resource="https://myjazz/jazz/../clmhelp" />
 
  <!-- Project areas service. This service is provisional and may change in the next release. -->
  <jp06:projectAreas
        rdf:resource="https://myjazz/jazz/process/project-areas" />

  <!-- Process templates service. This service is provisional and may change in the next release. -->
  <jp06:processTemplates
        rdf:resource="https://myjazz/jazz/process/templates" />

  <!-- Process security service. This service is provisional and may change in the next release. -->
  <jp06:processSecurity
      rdf:resource="https://myjazz/jazz/process-security"/>
   
  <!-- Process about service. It returns information about process and component versions without
       requiring user authentication. See work item 236627 for details--> 
  <jp06:processAbout
        rdf:resource="https://myjazz/jazz/process-about" />
               
  <!-- Project Area Management for registered applications. This entry is provisional. -->
  <jp:manageProjectAreas
        rdf:resource="https://myjazz/jazz/process/manageProjectAreas"/>

  <!-- Process Template Management for registered applications. This entry is provisional. -->
  <jp:manageProcessTemplates
        rdf:resource="https://myjazz/jazz/process/manageProcessTemplates"/>

  <jtp:associations
      rdf:resource="https://myjazz/jazz/process-authoring/associations"/>
 
  <jtp:defaultPracticeLibraryUrl
      rdf:resource="https://myjazz/jazz/process-authoring/libraries/shared"/>
 
  <jtp:file
      rdf:resource="https://myjazz/jazz/process-authoring/file"/>
 
  <jtp:license
      rdf:resource="https://myjazz/jazz/process-authoring/license"/>
 
  <jtp:practices
      rdf:resource="https://myjazz/jazz/process-authoring/practices"/>
 
  <jtp:processDescriptions
      rdf:resource="https://myjazz/jazz/process-authoring/descriptions"/>
 
  <!-- Application about service. -->
  <oslc:publisher rdf:resource="https://myjazz/jazz/application-about"/>     
       
  <!-- Server Rename Application Status service -->
  <jfs:serverRenameStatus
      rdf:resource="https://myjazz/jazz/appServerRenameStatus"/>
       
</rdf:Description>


Comments
Phillip Viana commented Aug 11 '17, 2:37 p.m.

For the record, myjazz/ccm does NOT work. And I want to try something with /jazz/changes but can't find any documentation about it.

One answer



permanent link
Ian Wark (79713553) | answered Aug 14 '17, 12:26 a.m.

Perhaps this is helpful:

CRUD RTC work items using cURL (Part 1: Read)
https://phkrief.wordpress.com/2014/04/06/crud-rtc-work-items-using-curl-part-1-read/

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.