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

JIRA Issues Macro count is showing incorrect value

    XMLWordPrintable

Details

    Description

      Overview

      The Issue Link is not updated when the one of the original macros were removed from the page and throwing some error message on the Confluence UI

      Steps to Reproduce
      • Create a Blank Page from a brand new Confluence installation
      • Insert two JIRA Issues Macro as per the following screen shot
      • Confirm on the amount of JIRA links (In this case 2 links)
      • After that, we edited the page and removed one of links. After saving the page, the links were still showing 2 links and after clicking the links button, we get the following error on the UI (and the links is showing 0 JIRA Links)
      • After refreshing the page, it will show the wrong Issue Link count again (2 Issue Link) in this example

      Checking from the atlassian-confluence.log, we can see the following exception below:

      2014-05-24 20:30:17,059 WARN [http-bio-8551-exec-6] [metadata.jira.helper.JiraMetadataErrorHelper] printError One or more JIRA instances could not be reached.
       -- url: /conf_551/rest/jira-metadata/1.0/metadata | userName: admin | referer: http://localhost:8551/conf_551/display/ds/JIRA+Issues+Macro+Testing
      java.util.concurrent.CancellationException
      	at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:220)
      	at java.util.concurrent.FutureTask.get(FutureTask.java:83)
      	at com.atlassian.confluence.plugins.metadata.jira.service.helper.FutureMetadataHelper.processFutures(FutureMetadataHelper.java:58)
      	at com.atlassian.confluence.plugins.metadata.jira.service.helper.FutureMetadataHelper.process(FutureMetadataHelper.java:42)
      	at com.atlassian.confluence.plugins.metadata.jira.service.JiraMetadataService.getMetadata(JiraMetadataService.java:99)
      	at com.atlassian.confluence.plugins.metadata.jira.rest.JiraMetadataResource.getMetadata(JiraMetadataResource.java:25)
      ...
      
      Expected Behaviour

      The Issue Link count should reflect the updated amount of JIRA Issues Macro link after the page is updated (when any JIRA Issues Macro is / are removed)

      Environment

      JIRA 6.2.5 + Confluence 5.5.1 + JIRA Agile 6.3.13.1

      Attachments

        1. jira_issue_1.JPG
          jira_issue_1.JPG
          175 kB
        2. jira_issue_2.JPG
          jira_issue_2.JPG
          118 kB
        3. jira_issue_3.JPG
          jira_issue_3.JPG
          145 kB
        4. jira_issue_4.JPG
          jira_issue_4.JPG
          139 kB
        5. jira_issue_5.JPG
          jira_issue_5.JPG
          128 kB

        Issue Links

          Activity

            People

              Unassigned Unassigned
              adanial Ahmad Danial (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: