-
Type:
Bug
-
Resolution: Unresolved
-
Priority:
Low
-
None
-
Affects Version/s: 6.15.2, 6.15.8
-
Component/s: Integrations - Jira
-
None
-
5
-
Severity 3 - Minor
-
0
Summary
Inconsistency in Jira Issue Link Count on Confluence Page.
When a mentioned in link is removed from Jira, the Jira link counter in Confluence page will be removed. Simply re-adding the Jira Issue again into the Confluence page does not trigger the mentioned in link to be re-added again.
Replicated Environment
Confluence 6.15.2
Confluence 6.15.8
Jira 7.11.1
Jira 8.3.3
Steps to Reproduce
- Establish Application Links between Confluence and Jira
- Create a new page and insert an Jira Issue Macro with a single issue
- Publish the Page
Upon publishing the page, Confluence sends a POST request to Jira to add the mentioned in link in Jira Issue:
2019-10-15 15:33:26,335 DEBUG [Jira remote link executor:thread-36] [org.apache.http.headers] onRequestSubmitted http-outgoing-4110 >> POST /j833/rest/api/latest/issue/ST-2/remotelink HTTP/1.1 - Verify the Jira link on top of the page has 1 count (which is the issue that has just been inserted)
- Verify the linked issue in Jira has mentioned in of the page in Confluence
- Manually remove the mentioned in link from Jira
- Refresh Confluence page to confirm the Jira link no longer shows
- Edit the page, add in another Jira issue Macro with the same issue and Publish the page
At this point the page will have 2 different Jira Issue Macros and both are pointing to the same Jira Issue
Expected Results
Since the Issue has been re-added into the page, Confluence should send the remote link request again so the Jira link counter can pickup the issue link again
Actual Results
Confluence does not send the POST request to add the mentioned in link to the Jira Issue thus the Jira link still has no count
Workaround
- Remove all Jira Issue Macro(s) that is related to the specific Jira Issue
- Save/Publish the page
- Edit the page again and re-add the Jira Issue Macro
Information
The Jira link counter on top of Confluence page get the counts from Jira by sending the request below upon page load:
2019-10-23 10:55:21,356 DEBUG [JIRAMetadataPlugin_aggregate:thread-3] [http.impl.execchain.MainClientExec] execute Executing request GET /rest/remote-link-aggregation/1/aggregation?globalId=appId%3Dxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx%26pageId%3Dyyyyyyyyy&globalId=appId%3Dxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx%26pageId%3Dyyyyyyyyy HTTP/1.1
Thus, if the mentioned in link doesn't exist in Jira's Issues, the Jira link count will not display the correct count number
- relates to
-
CONFSERVER-55943 JIRA issue link is not detected trackback system when created by wiki markup code or database entry
-
- Long Term Backlog
-