Old Jira Application name displaying while authenticating Confluence from the Jira under User Profile

Still need help?

The Atlassian Community is here for you.

Ask the community

Summary

A user can authenticate confluence from Jira to show confluence-related activities under "Activity Stream" on the profile page.
If for some reason the Jira application is renamed and the application link between Confluence and Jira is recreated, then on re-authenticating Confluence from Jira under Activity Streams it still displays the Old Jira application name.

In the below screenshot, Jira Application was renamed to "Jira Dev Old", but still the old name "Jira Dev" is displayed while authenticating

Cause:

On changing the Jira application name from the UI under System => General Settings => Title, 

oauthconsumer DB table is not updated and retains the entry with the old consumer name, as a result, the same is passed to confluence during the recreation of the APP link after the Jira application name change.

As a result, there is an incorrect entry in the bandana DB table of confluence against the property name for the new App link configuration.


Diagnosis

Run the below query in the Confluence DB

select * from bandana where bandanavalue like '%Old_Jira_Name%' ; 

If an entry like the one below with property name="name" indicating the old Jira Application name is returned, it indicates confluence is holding the incorrect Application name for the Jira



Solution

  • Delete application link in confluence with Jira. Also, do the same in Jira and verify old link doesn't exist anymore on either side.

Confluence

  • Confirm by running the below query in confluence DB that you don't get the output for the below query like the one you received last time:

    select * from bandana where bandanavalue like '%Old_Jira_Name%' ;

    JIRA

    • Stop the Jira application
    • Run the below update statement in Jira DB

      update oauthconsumer set consumername='New_Jira_application_Name' where id=<ID of Incorrect Entry in oauthconsumer for Old Jira Application Name> ;
    • Start Jira
    • Recreate the application link between Jira and confluence.

    Try to authorize confluence again from Jira to verify if you can see the correct application name now.

    We strongly recommend running the direct DB updates after taking a DB backup first.








Last modified on Mar 10, 2022

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.