Atlassian uses cookies to improve your browsing experience, perform analytics and research, and conduct advertising. Accept all cookies to indicate that you agree to our use of cookies on your device. Atlassian cookies and tracking notice, (opens new window)
Confluence
/
Cleaning up links to non-existing Jira issues
Published Feb 27, 2024

    Cleaning up links to non-existing Jira issues

    Various “reindex” tools can clean up data. However, since the connection between two systems like Confluence and Jira is not a tight coupling, the software doesn’t try to aggressively delete links to non-existing Jira issues. There are too many legitimate scenarios where things could go wrong if we automated the deletion of links: The queue user not having access to permissions on real Jira issues; Jira being unreachable; Issues having been transferred to another system but still existing, etc.

    There are situations which will be fixed in the future, where links should have been deleted, such as deleting an entire Jira project. As of 3.8, administrators need to do it manually.

    The page below explains how to delete links to non-existing Jira project.

    The data model

    As shown in Database schema, the tables can be summarized as:

    AO_32F7CE_DBREQUIREMENT → AO_32F7CE_DBLINK* → Actual Jira issues.

    * with TYPE='JIRA' AND ORIGIN = false

    SQL queries

    select R.ID, R.SPACEKEY, R.KEY, R.BASELINE, R.STATUS, L."ID" as LINKID, L."TYPE", L."APP", L."DOCUMENTID", L."RELATIONSHIP" from "AO_32F7CE_DBREQUIREMENT" as R join "AO_32F7CE_DBLINK" as L on L."PARENT_ID" = R."ID" and L."TYPE" = 'JIRA' where DOCUMENTID like 'YOGI-%' -- The issue key AND APP = '9f2d636e-c842-3388-8a66-17c1b951dd45' -- The applink id ;

    If you can only see links which should be deleted, then you can proceed to the deletion:

    DELETE FORM "AO_32F7CE_DBLINK" WHERE "TYPE" = 'JIRA' -- Don't forget to add your own criteria, if necessary AND DOCUMENTID LIKE 'YOGI-%' AND APP = '9f2d636e-c842-3388-8a66-17c1b951dd43' ;

     

    Teams
    , (opens new window)

    Requirement Yogi (Data Center)
    Results will update as you type.
    • Getting Started - Tutorials
    • Administrator's guide
      • Configuration
      • Maintenance guide
      • Limitations
      • Migration to the Cloud
      • Requirement Yogi Cloud vs Data Center
      • Backup, import and export of Requirement Yogi data across Confluence and Jira instances
        • What are the steps of export / re-import?
        • How to carefully perform the mappings for the backup import/export step?
        • Checking that the Jira mappings are correct
        • Cleaning up links to non-existing Jira issues
        • Backup file structure
        • Database schema for Confluence backups
        • Database schema for Jira backups
        • Deleting the results of an incorrect import in Jira
      • Database schema
      • Changing Applinks
      • Performance
      • Copying, Splitting and Moving pages
      • Choosing the indexing engine
      • Notifications
      • Data Center SLA / Escalation process
      • History - Administrator's guide
    • Features
    • Requirement Yogi for Jira
    • RY Testing and Compliance
    • Integrations
    • APIs
    • Release notes
    • Archives (Legacy Features)
      Calendars
    You‘re viewing this with anonymous access, so some content might be blocked.
    {"serverDuration": 33, "requestCorrelationId": "cf689ef696e341559ecd586655218342"}