When the link of the confluence page in jira issue which is created using rest API by the forge app is clicked, getting the dailouge to login to the confluence even if already logged in

Hello,
I have created a forge app which is deployed in issue panel.
Functionality of the App is as follows :

  1. when the user clicks on that app the confluence page will be created and linked to the same issue in which the app is clicked on.
  2. After creating confluence page and linking it to the issue the App will refresh the browser.
  3. After the refresh, link of the confluence page will be displayed in the issue page, when i open the confluence link in new tab I was navigated to the confluence page that is created.
  4. But when I click on the confluence link , in preview popup it is asking me to login to confluence even if I am already logged in how can i resolve this issue ?

Note : when I click on the confluence link in issue page after creating the confluence page and linking it to issue with forge app , I am getting a dialog to login to the confluence but I have already logged in .
But after creating a confluence page with forge app if i navigate to the other issue and come back to the same issue again in which the confluence page is created and linked with forge app, then the confluence page is displayed in the preview.

Please suggest the steps to be followed in order to resolve this issue.

Thanks in Advance !

@Sunilkumark,

Could you disambiguate how your app “links” to the Confluence page? How does your app obtain or construct the page URL? And how is that URL “linked” in Jira: is it an AppLink or an ADF hyperlink?

@ibuchanan ,

My App links the issue with confluence page using the API, and whenever the confluence page is linked with the issue through Api and the page is refreshed the URL is getting constructed automatically in the issue page it is ADF hyper link which displays the linked confluence pages as a hyperlinks in the issue page.

after creating confluence page and linking it with issue in Jira if I click on the confluence generated in the issue page it is asking me to login to the confluence page if I open the same in new tab then the created confluence page is getting displayed.

After creating a confluence page and linking it with the issue if I switch to the other issue then come back to the same issue in which the confluence page is linked by app, then if I click on the confluence link generated then the confluence page is getting generated in the preview pop-up.

Please help me in resolving this.
Thanks in Advance !