JIRA API fails to get Confluence Page Titles through Remote Issue Links

XMLWordPrintable

    • 7.09
    • 10
    • Severity 3 - Minor
    • 7

      Summary

      Using either Java API or REST API to get remote issue links, the outputs do not contain Confluence page titles

      Steps to reproduce

      1. Link JIRA and Confluence using applinks
      2. Link a JIRA issue with a Confluence page in 2 ways:
        • Use the Link feature in JIRA -> this will create a Wiki Page link relationship
        • Use JIRA Issues macro in Confluence -> this will create a Mentioned in link relationship
      3. Get remote issue links using API as follows:

      Expected behavior

      The Confluence page titles are returned correctly

      Actual behavior

      • For Wiki Page link, the page title displays Wiki Page
      • For Mentioned in link, the page title displays Page

      Example:

        {
          "id": 10101,
          "self": "http:\/\/emeajira:8790\/jira790\/rest\/api\/2\/issue\/SCRUM-1\/remotelink\/10101",
          "globalId": "appId=526b2a52-1031-3ad1-a42c-5f2bfd6e55f6&pageId=65538",
          "application": {
            "type": "com.atlassian.confluence",
            "name": "Confluence"
          },
          "relationship": "Wiki Page",
          "object": {
            "url": "http:\/\/emeajira:6801\/cfl681\/pages\/viewpage.action?pageId=65538",
            "title": "Wiki Page",
            "icon": {
              
            },
            "status": {
              "icon": {
                
              }
            }
          }
        },
        {
          "id": 10102,
          "self": "http:\/\/emeajira:8790\/jira790\/rest\/api\/2\/issue\/SCRUM-1\/remotelink\/10102",
          "globalId": "appId=526b2a52-1031-3ad1-a42c-5f2bfd6e55f6&pageId=65540",
          "application": {
            "type": "com.atlassian.confluence",
            "name": "Confluence"
          },
          "relationship": "mentioned in",
          "object": {
            "url": "http:\/\/emeajira:6801\/cfl681\/pages\/viewpage.action?pageId=65540",
            "title": "Page",
            "icon": {
              
            },
            "status": {
              "icon": {
                
              }
            }
          }
        }
      

      Notes

      For remote links to Bamboo e.g. plan branches, the branch title is returned correctly:

        {
          "id": 10007,
          "self": "http:\/\/emeajira:8790\/jira790\/rest\/api\/2\/issue\/SCRUM-1\/remotelink\/10007",
          "globalId": "appId=063c4120-4718-349c-85bb-f2eff99061bb&planKey=BAM-JIRA0",
          "application": {
            "type": "com.atlassian.bamboo",
            "name": "Atlassian Bamboo"
          },
          "relationship": "Bamboo Branches",
          "object": {
            "url": "http:\/\/emeajira:6401\/bam641\/browse\/BAM-JIRA0\/latest",
            "title": "Bamboo \u203a JIRA \u203a test-SCRUM-1-branch",
            "summary": "BAM-JIRA0",
            "icon": {
              "url16x16": "http:\/\/emeajira:8790\/jira790\/download\/resources\/com.atlassian.jira.plugin.ext.bamboo:bamboo-version-tabpanel\/images\/icon_bamboo.png",
              "title": "Plan Status"
            },
            "status": {
              "icon": {
                
              }
            }
          }
        }
      

      The title column in remotelink table in JIRA database appears to contain:

      • Wiki Page for Wiki Page link
      • Page for Mentioned in link
      • Bamboo's actual branch title

            Assignee:
            Unassigned
            Reporter:
            Andy Nguyen (Inactive)
            Votes:
            43 Vote for this issue
            Watchers:
            38 Start watching this issue

              Created:
              Updated: