Adding attachments to a executionresult
I have using the REST API been able to upload an attachment to the server. At least I'm getting a 201 response code.
The problem is that the attachcment upload method does not return any response body at at all (I have tryed btoh POST and GET). What I'm missing is the attachment record identity, so that I can assosiate the attachment with my executionresult.
I have also tryed to change the URL access method to include
something like attachment/urn:com.ibm.rqm:executionresult:99
This also gives me a 201 code but no attachment is added to the executionresult.
Any help / suggestions appreciated
BR
Lars
The problem is that the attachcment upload method does not return any response body at at all (I have tryed btoh POST and GET). What I'm missing is the attachment record identity, so that I can assosiate the attachment with my executionresult.
I have also tryed to change the URL access method to include
something like attachment/urn:com.ibm.rqm:executionresult:99
This also gives me a 201 code but no attachment is added to the executionresult.
Any help / suggestions appreciated
BR
Lars
2 answers
I am having a similar problem uploading attachments to test steps. I do a POST as follows:
POST https://localhost:9443/jazz/service/com.ibm.rqm.integration.service.IIntegrationService/resources/My+Project/attachment -filepath C:\\lOGO.JPG
And receive a 201 Created reponse code.
But when I do a GET for attachment resources I get nothing ie,
GET https://localhost:9443/jazz/service/com.ibm.rqm.integration.service.IIntegrationService/resources/My+Project/attachment
returns a 201 success code, but the returned XML has no attachment reference, just the feed header:
<feed><title>Quality Manager attachment feed</title></feed>
However my problem is compounded as it appears the teststep resource has not been implemented in the API as of yet, so even if I could GET it, I would not be able to attach it to a test step.
Any suggestions on this appreciated.
Randy
POST https://localhost:9443/jazz/service/com.ibm.rqm.integration.service.IIntegrationService/resources/My+Project/attachment -filepath C:\\lOGO.JPG
And receive a 201 Created reponse code.
But when I do a GET for attachment resources I get nothing ie,
GET https://localhost:9443/jazz/service/com.ibm.rqm.integration.service.IIntegrationService/resources/My+Project/attachment
returns a 201 success code, but the returned XML has no attachment reference, just the feed header:
<feed><title>Quality Manager attachment feed</title></feed>
However my problem is compounded as it appears the teststep resource has not been implemented in the API as of yet, so even if I could GET it, I would not be able to attach it to a test step.
Any suggestions on this appreciated.
Randy
I have using the REST API been able to upload an attachment to the server. At least I'm getting a 201 response code.
The problem is that the attachcment upload method does not return any response body at at all (I have tryed btoh POST and GET). What I'm missing is the attachment record identity, so that I can assosiate the attachment with my executionresult.
I have also tryed to change the URL access method to include
something like attachment/urn:com.ibm.rqm:executionresult:99
This also gives me a 201 code but no attachment is added to the executionresult.
Any help / suggestions appreciated
BR
Lars
Ok,
I am attempting to create labresources using the REST API via the POST operation.
Call me stupid but I am unable to do so.
Here is what I am trying
host=https://tcbdb.tivlab.raleigh.ibm.com:9443
java -jar RQMUrlUtility.jar -command PUT -user $user -password $passwd -filepath /home/prumble/Projects/RQM/LabResources/solaris75.xml \
-url $host/jazz/secure/service/com.ibm.rqm.integration.service.IIntegrationService/resources/ITCAM%20for%20Transactions/labresource/solaris75.xml
and solaris75.xml is
<labresource><title>solaris75test</title><description>Solaris</description></labresource>
I have tried popuplating more data in the xml but I kept getting 413 errors.
My big question is what url should I use for the POST operation?
I do not want to specify an internal id ie urn:com.ibm.rqm:labresource:1 as I want tocreate a new labresource.
This link was helpful but not quite http://jazz.net/forums/viewtopic.php?t=6803&highlight=post+urn
Any Ideas?
I am attempting to create labresources using the REST API via the POST operation.
Call me stupid but I am unable to do so.
Here is what I am trying
host=https://tcbdb.tivlab.raleigh.ibm.com:9443
java -jar RQMUrlUtility.jar -command PUT -user $user -password $passwd -filepath /home/prumble/Projects/RQM/LabResources/solaris75.xml \
-url $host/jazz/secure/service/com.ibm.rqm.integration.service.IIntegrationService/resources/ITCAM%20for%20Transactions/labresource/solaris75.xml
and solaris75.xml is
<labresource><title>solaris75test</title><description>Solaris</description></labresource>
I have tried popuplating more data in the xml but I kept getting 413 errors.
My big question is what url should I use for the POST operation?
I do not want to specify an internal id ie urn:com.ibm.rqm:labresource:1 as I want to
This link was helpful but not quite http://jazz.net/forums/viewtopic.php?t=6803&highlight=post+urn
Any Ideas?