Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

RQM - Uploading Attachment via REST API/RQMUrlUtility

 CLM 5.0.2

Following RQMUrlUtility, I have issued the next command to upload an attachment:

java -jar RQMUrlUtility -command POST -user build -password build -filepath C:\temp\importing.log -url https://server:9443/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/JKE%20Banking%20(Quality%20Management)/attachment

The output seems like the command succeeded:

                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                                  <<<<<----- [ RQMUrlUtility ] ---->>>>>
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Default cookie policy RFC_2109 is used.
RQMUrlUtility: Connected to https://server:9443 using project "JKE+Banking+(Quality+Management)"
Attempting to create SSL_TLS context
RQMUrlUtility: Calling [ HTTP POST ] method to upload XML from a specified file to URL
RQMUrlUtility: Server Response code: 201
RQMUrlUtility: [ SUCCESS ] File : "C:\temp\importing.log" successfully posted to URL : "https://server:9443/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/JKE+Banking+(Quality+Management)/attachment "
Slug: Content-Location: slug__3ZpDkJV-EeS778qLKYfUqw

Disconnecting from the IBM Rational Quality Manager server.

BUT, I can't see the attachment in the attachment feed, nor I can attach it to a specific resource.

Is there something wrong with the command above?

Liora



0 votes



4 answers

Permanent link
 Please ignore.  Found the solution.

0 votes


Permanent link
Hi Liora, nice that you were able to resolve the issue, however, I am struggling with a similar issue so maybe you can share the solution with the community? Thanks!

0 votes

Comments

Long time passed since than. Don't really remember.

BUT, I was able to add the attachment.

Let me add my customer to this discussion and he might find you the relevant code. 

When you say "I was able to add the attachment" do you mean you were able to add a link to the attachment to another artifact (e.g. an execution result) via REST API? I have been told it would not be possible because attachment and contribution elements are defined as read-only.

 Yes. I was able to do it.  I have received my customer approval to publish the code snippet.  He will do that later on.

Great, thanks in advance!


Permanent link

 how to get slug ID in success response i am not able to get that? 

0 votes


Permanent link

 If this thread is not intended to solve the problem nor share the solution better close it saying not resolved.

0 votes

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,963

Question asked: Jan 06 '15, 3:40 a.m.

Question was seen: 4,847 times

Last updated: Sep 25 '19, 4:40 a.m.

Related questions
Confirmation Cancel Confirm