Printing labels for Assets Objects from the list view fails with errors.

XMLWordPrintable

    • 9
    • Severity 3 - Minor
    • 14

      Issue Summary

      This is reproducible on Data Center: Yes

      When printing labels for Assets Objects from the list view, errors occur. This problem has been reported by more than 7 customers, and it usually occurs after upgrading to JSM 5.0+ versions. 

      Steps to Reproduce

      1. Upgrade to JSM 5.0 + versions
      2. Please configure the label template using the source html template provided below. Please keep in mind that the source html in this example works properly in Jira lower versions (Eg: 4.22.6)
      <table cellpadding="0" cellspacing="0" style="width: 100%">
      <tbody>
      <tr>
      <td style="max-width: 80%; vertical-align: top;"><span style="font-size:28px"><span style="font-family:arial,helvetica,sans-serif"><strong>[[LABEL]]</strong></span></span>   <br>
      <br>
      <span style="font-size:20px"><span style="font-family:arial,helvetica,sans-serif"><strong>[[Key]]</strong></span></span>
      <div style="margin-top: 20px;">
      <p><span style="font-family:arial,helvetica,sans-serif">ServiceTag: [[SerialNumber]]</span></p>
      </div>
      </td>
      <td style="width: 20%; max-width: 100px; vertical-align: top;"><img alt="" id="image-qrlogo" src="/download/resources/com.riadalabs.jira.plugins.insight/images/qrcodetemplate.png" style="float:right" width="150"></td>
      </tr>
      </tbody>
      </table> 

      3. The label template used in this example is called Issue template. Display the objects in List View.

      4. Using the template created in step 2, try to print label of an object from list view. It fails with an error.

      Expected Results

      The print label should function flawlessly because the same label template functions in Jira's older versions without any issues.

      Actual Results

      While printing the labels, the following error is generated.

      Workaround

      The workarounds listed below are based on internal testing, with a few others given by customers who experienced the same issue.

      To workaround the problem, print the label from the object view.

      Create a new label template from scratch and test it from the object list view page.

      The workaround listed below is effective for few consumers.

      • Create a new label template, use the default parameters.
      • Using the newly created label templates, print labels.
      • Now try printing the label again using the template that was failing earlier from object list view page.

      The below workaround worked for one customer.

      • Edit the html source code of the template which is failing. Example add an placeholder.
      • Now try printing the label again using the template that was failing earlier from object list view page.

      However, if you try to print the label from another browser or system, the problem may reappear. 

        1. image-2023-06-08-12-36-28-813.png
          98 kB
          Navneeth S
        2. image-2023-06-08-12-38-40-701.png
          180 kB
          Navneeth S
        3. image-2023-06-08-12-42-28-264.png
          40 kB
          Navneeth S

              Assignee:
              Rostislav Pasechnikov (Inactive)
              Reporter:
              Navneeth S
              Votes:
              5 Vote for this issue
              Watchers:
              9 Start watching this issue

                Created:
                Updated:
                Resolved: