Improve Error Handling in the Macro

XMLWordPrintable

    • 0
    • 1

      Issue Summary

      When Confluence macros (such as the Jira Issue Macro) fail to fetch data from Jira due to an incorrect Jira Application Link, the error message displayed in the UI or in the Confluence application logs doesn't indicate the issue. The error handling and the exceptions displayed to the user must be improved.

      The exceptions captured in the application log are as follows.

      2025-07-07 10:27:50,766 ERROR [JIM Marshaller:thread-3] [extra.jira.columns.DefaultJiraIssuesColumnManager] getColumnsInfoFromJira Failed to fetch Jira fields:
       -- page: 393235 | referer: <BASE_URL>/ | traceId: a0365800c6ea9e6c | userName: admin | action: viewpage | url: /confluence/spaces/AD/pages/393235/test
      com.atlassian.cache.CacheException: java.lang.RuntimeException: com.atlassian.sal.api.net.ResponseStatusException: Unexpected response received. Status code: 401
      ---
      Caused by: java.lang.RuntimeException: com.atlassian.sal.api.net.ResponseStatusException: Unexpected response received. Status code: 401
      ---
      Caused by: com.atlassian.sal.api.net.ResponseStatusException: Unexpected response received. Status code: 401
      

            Assignee:
            Unassigned
            Reporter:
            Sunil Kumar C
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: