Skip to content

Commit b5fd861

Browse files
authored
fix: Detect if Jira v8 server is not using the /createmeta REST endpoint (#574)
* Try to detect if JIRA v8 server is using the updated endpoint for getting issue types per https://confluence.atlassian.com/jiracore/createmeta-rest-endpoint-to-be-removed-975040986.html
1 parent a7e2dfe commit b5fd861

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

internal/config/generator.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,8 @@ func (c *JiraCLIConfigGenerator) searchAndAssignBoard(project, keyword string) e
487487
func (c *JiraCLIConfigGenerator) configureMetadata() error {
488488
var err error
489489

490-
if c.value.installation == jira.InstallationTypeLocal && c.value.version.major >= 9 {
490+
isV9Compatible := c.value.version.major >= 9 || (c.value.version.major == 8 && c.value.version.minor > 4)
491+
if c.value.installation == jira.InstallationTypeLocal && isV9Compatible {
491492
err = c.configureIssueTypesForJiraServerV9()
492493
} else {
493494
err = c.configureIssueTypes()

0 commit comments

Comments
 (0)