Skip to content

Jira issues - Display error message returned from jira response

Ivane Gkomarteli requested to merge ig-display-jira-response-error-to-user into master

What does this MR do and why?

The current code assumes that the error_messages will be included in the message from Jira but according to the Jira documentation the error_messages are returned in the response body.

Change in this MR: If an error occurs with a status of 'Bad Request', the code attempts to parse the error_messages. If successful, it returns them; otherwise, it defaults to a generic message.

Resolves issue: #426034 (closed)

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

Screen_Recording_2024-04-15_at_18.16.08

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

Merge request reports