From f6cbadedaf7a07fab6b7945cbcefc12aa2118723 Mon Sep 17 00:00:00 2001 From: Jan Macku Date: Fri, 15 Nov 2024 13:23:52 +0100 Subject: [PATCH] fix: don't set severity for Story issue type --- src/cli.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/cli.ts b/src/cli.ts index 32f1c00..02cddd3 100644 --- a/src/cli.ts +++ b/src/cli.ts @@ -230,7 +230,8 @@ const runProgram = async () => { let severity = parsedSeverity.success ? parsedSeverity.data : undefined; const setSeverity = !severity; - if (!severity) { + // This is workaround, We should use api to determine what values are available on the issue + if (!severity && issue.fields.issuetype.name !== 'Story') { const answer: SeverityWithControls = await select({ message: 'Severity', choices: [