quality-time icon indicating copy to clipboard operation
quality-time copied to clipboard

Unclear error message when issue tracker issue type does not exist

Open fniessink opened this issue 3 years ago • 2 comments

Describe the bug When the issue configures a non-existing issue type in the issue tracker config, the error message is unclear.

To Reproduce Steps to reproduce the behaviour:

  1. Go to issue tracker config
  2. Enter issue tracker config with a non-existing issue type
  3. Try to create an issue for a metric
  4. See error: "Error creating issue: undefined"

Expected behaviour A error message indicating that the issue type does not exist.

Your environment (please complete the following information):

  • Quality-time v4.4.0

Additional context Reported by @Sebastiaan127001

fniessink avatar Sep 20 '22 16:09 fniessink

This is a test comment to see whether Sebastiaan gets a notification without mentioning him.

fniessink avatar Sep 20 '22 16:09 fniessink

image

Sebastiaan127001 avatar Sep 20 '22 18:09 Sebastiaan127001

Won't fix this issue because:

  • It's much harder to trigger with recent versions of Quality-time: the user would need to select a Jira project that supports issue type A and then switch to another project that doesn't support issue type A. On top of that, the issue tracker config tab will show that no issue type is selected, using a red background, so it's clear the config is not valid.
  • The error message no longer says "undefined", but correctly says there was a client error (400).

fniessink avatar Nov 21 '22 11:11 fniessink