-
Type:
Bug
-
Resolution: Unresolved
-
Priority:
Low
-
None
-
Affects Version/s: 7.9.0, 8.20.27, 9.0.0, 9.4.11, 9.11.2, 10.3.6
-
Component/s: Application Links, Issue - Actions, Java API, REST API
-
None
-
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
- Link JIRA and Confluence using applinks
- 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
- Get remote issue links using API as follows:
- For Java API, use this method: RemoteIssueLink.html#getTitle
- For REST API, use this method: issue-getRemoteIssueLinkById
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
- relates to
-
JRASERVER-42573 REST API not returning IssueLinks in JSON response if Linked Issues field is disabled
-
- Gathering Impact
-