6 views


Description


By default OOB there's no way to add attachments to a new defect (rm_defect) form if it's opened from the test case (tm_test_case_instance) via the "Report Defect" link since the header bar (where the attachment icon is located) is not visible.

 

This article details that steps that can be taken to workaround this behavior to allow users to still be able to add attachments to the new defect form.

Procedure


1) Create a new UI Action:


Name: Add Attachment
Table: Defect [rm_defect]
Action name: add_attachment
Show insert: checked
Show update: checked
Client: checked
Form link: checked
Onclick: myFunction()
Script:
function myFunction()
{
saveAttachment(g_form.getTableName(), g_form.getUniqueValue());
}

Once this UI Action is created there would now be a related link on the rm_defect form that users can click to add attachment to the record.

 

2) Add the "Attachments" related list to the form as an embedded list (this can be done by going to rm_defect form > Configure > Form Layout > Add "Attachments" related list to the form).

Please note that the rm_defect form that is opened through the test case form is using the 'Scrum' view so one would need to add the "Attachments" element to that view.
This extra step is needed so users would know/see what attachment(s) they have added (attachments would normally show on the header of the form but since that's not available this would be the workaround for it).

 

Applicable Versions


All versions that use Test Management application

Additional Information


Creating UI Actions

Test Management documentation

Article Information

Last Updated:2018-07-13 15:07:12
Published:2018-07-13