How to add the ability to add attachments to the defect form when opened through the Report Defect link from the test case recordDescription<!-- div.margin{ padding: 10px 40px 40px 30px; } table.tocTable{ border: 1px solid; border-color:#E0E0E0; background-color: rgb(245, 245, 245); padding-top: .6em; padding-bottom: .6em; padding-left: .9em; padding-right: .6em; } table.noteTable{ border:1px solid; border-color:#E0E0E0; background-color: rgb(245, 245, 245); width: 100%; border-spacing:2; } table.internaltable { white-space:nowrap; text-align:left; border-width: 1px; border-collapse: collapse; font-size:14px; width: 85%; } table.internaltable th { border-width: 1px; padding: 5px; border-style: solid; border-color: rgb(245, 245, 245); background-color: rgb(245, 245, 245); } table.internaltable td { border-width: 1px; padding: 5px; border-style: solid; border-color: #E0E0E0; color: #000000; } .title { color: #D1232B; font-weight:normal; font-size:28px; } h1{ color: #D1232B; font-weight:normal; font-size:21px; margin-bottom:-5px } h2{ color: #646464; font-weight:bold; font-size:18px; } h3{ color: #000000; font-weight:BOLD; font-size:16px; text-decoration:underline; } h4{ color: #646464; font-weight:BOLD; font-size:15px; text-decoration:; } h5{ color: #000000; font-weight:BOLD; font-size:13px; text-decoration:; } h6{ color: #000000; font-weight:BOLD; font-size:14px; text-decoration:; } ul{ list-style: disc outside none; margin-left: 0; } li { padding-left: 1em; } --> 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