You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@devlake.apache.org by wa...@apache.org on 2022/09/02 05:26:43 UTC

[incubator-devlake] 01/03: fix(jira): add jira 7 support

This is an automated email from the ASF dual-hosted git repository.

warren pushed a commit to branch release-v0.12
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git

commit 80deeb72bf2b8fb3e51a6a445fd9ae41c201f225
Author: Yingchu Chen <yi...@merico.dev>
AuthorDate: Thu Sep 1 19:19:09 2022 +0800

    fix(jira): add jira 7 support
    
    closes #2912
---
 plugins/jira/api/connection.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/plugins/jira/api/connection.go b/plugins/jira/api/connection.go
index b7f97ed4..a78a984b 100644
--- a/plugins/jira/api/connection.go
+++ b/plugins/jira/api/connection.go
@@ -86,7 +86,7 @@ func TestConnection(input *core.ApiResourceInput) (*core.ApiResourceOutput, erro
 	// check version
 	if resBody.DeploymentType == models.DeploymentServer {
 		// only support 8.x.x or higher
-		if versions := resBody.VersionNumbers; len(versions) == 3 && versions[0] < 8 {
+		if versions := resBody.VersionNumbers; len(versions) == 3 && versions[0] < 7 {
 			return nil, fmt.Errorf("%s Support JIRA Server 8+ only", serverInfoFail)
 		}
 	}