It's all about the answers!

Ask a question

Adding attachments to a executionresult


Lars Ohlén (511133) | asked Dec 10 '09, 5:00 a.m.
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

2 answers



permanent link
Randy Miller (1111) | answered Jan 20 '10, 9:09 p.m.
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


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

permanent link
Phil Rumble (6196) | answered Mar 30 '10, 9:59 p.m.
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 to create a new labresource.

This link was helpful but not quite http://jazz.net/forums/viewtopic.php?t=6803&highlight=post+urn


Any Ideas?

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.