Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-54976

The first Jira Issue Macro shows error message when another JIM macro on the page is referencing an invalid Jira Server

    XMLWordPrintable

Details

    Description

      Summary

      Page have multiple Jira Macro that links to different issue. One(or multiple) Jira Macro have the wrong Server Name and Server ID that throw the following error
      .
      However the first Jira Macro have the correct Information. The First Jira Macro will always show the error below:

      Sample error

      Simulate Environment(require for testing)

      Steps to Simulate

      1. Create a Page in Confluence with multiple Jira Macro with correct information and save.
      2. Use Source Code Editor to change one of the Jira Macro(Not the first Jira Macro) with a wrong server name and server ID
        <ac:task-body>Speak to SET about <ac:structured-macro ac:macro-id="fba4d496-1ac1-4849-a4ea-66930372e143" ac:name="jira" ac:schema-version="1">
                <ac:parameter ac:name="server">{color:red}<Server Name>{color}</ac:parameter>
                <ac:parameter ac:name="columns">key,summary,type,created,updated,due,assignee,reporter,priority,status,resolution</ac:parameter>
                <ac:parameter ac:name="serverId">{color:red}<Server ID>{color}</ac:parameter>
                <ac:parameter ac:name="key">SSP-28</ac:parameter>
              </ac:structured-macro> and how we can make communication for bugs better</ac:task-body>
        
      3. Save the page.

      Expected Results

      to be shown on the wrong Jira Macro and not the first Jira Macro

      Actual Results

      is thrown on the first Jira Macro

      The below exception is thrown in the xxxxxxx.log file however it does not reflect the bug mention:

      2018-02-07 09:37:54,653 WARN [http-nio-9090-exec-8] [xhtml.view.macro.ViewMacroMarshaller] handleMacroExecutionException Exception executing macro: jira, with message: Unable to locate Jira server for this macro. It may be due to Application Link configuration.
       -- url: /display/AG/2018-01 | page: 41287963 | traceId: 4cfab28c608b6b5f | userName: jsyang | referer: http://jira.bitnine.net:9090/display/AG/2018+Daily+reports | action: viewpage
      

      Note

      This happen due to migration from Cloud to Server

      Workaround

      Remove/replace if you don't need multiple Jira Macros on the page

      Find the error below for the broken Jira Macro and remove/replace it in the edit view
      .

      Display options > Table if you need multiple Jira Macros on the page

      Open the Jira macro on Confluence page, in editing mode:

      On the bottom, click the "Display options" button:

      Switch from Single issue to Table for the first JIRA macro on the page.
      It should look like this:

      And, after saving the page:

      Attachments

        1. Capture.JPG
          Capture.JPG
          44 kB
        2. error jira.JPG
          error jira.JPG
          23 kB
        3. screenshot-1.png
          screenshot-1.png
          42 kB
        4. screenshot-2.png
          screenshot-2.png
          64 kB
        5. screenshot-3.png
          screenshot-3.png
          18 kB
        6. screenshot-4.png
          screenshot-4.png
          62 kB
        7. unable jira.JPG
          unable jira.JPG
          13 kB

        Issue Links

          Activity

            People

              da49b6b22d78 yhrabovskyi (Inactive)
              kng Kenny Ng (Inactive)
              Votes:
              9 Vote for this issue
              Watchers:
              19 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: