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

RQM - How to refer to same attachment in different sections of a test artifact

Is there any way to refer same attachment in several locations of a test artifact, e.g. "Test Case Design" and "Pre-Condition" of the test case. 

In the test case section "Test Case Design" I use the "Insert Attachment" to upload and refer to an attachment.
a) How can I refer to same attachment in another section (e.g. "Pre-Condition")?
When I use in the second section the "Insert Attachment" again and select same attachment on my file system, it will create a second attachment with same name.


b) How to update the attachment?
When I delete the attachment in the "Test Case Design" section and re-insert the updated one, it will again create a new attachment with a new identifier.


0 votes


Accepted answer

Permanent link
Uploaded attachment is stored in ETM repository and it's referenced by an URL (link) when inserted in a rich text document, such as 'Test Case Design'. To reference the same attachment in another rich text section, one way to do this is:
  • right click on the attachment link in the original section (in preview mode, and not in edit mode) and copy the link location.
  • Once you've copied the attachment's link location, you can go to another section that you want to reference the same link
  • In the section, use the insert 'URL Link' action in the rich text editor to insert a link
  • In the dialog paste the copied attachment link location (be sure to select the proper protocol, i.e., 'https'
  • Enter a display text for the link 
The section now has a link referencing the same attachment as the original section.

You cannot update an attachment once you've created it, at least not from the Web UI. You might be able do that using the RQM Reportable REST API. please check https://jazz.net/wiki/bin/view/Main/RqmApi for reference.

Hope this helps.
Hutter Donat selected this answer as the correct answer

0 votes

Comments

Thanks for the hint with REST API.
I will probably create an RFE, as I see some potential improvement in attachment handling.

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
× 12,020

Question asked: Feb 06 '20, 12:11 p.m.

Question was seen: 970 times

Last updated: Feb 12 '20, 11:35 a.m.

Confirmation Cancel Confirm