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:42 UTC

[incubator-devlake] branch release-v0.12 updated (2ba3235b -> 8481a2b6)

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

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


    from 2ba3235b fix(jira): change jira issuetype api version #2883 (#2896)
     new 80deeb72 fix(jira): add jira 7 support
     new 18c406b7 fix(jira): use issuetype.name if issuetype has no untranslatedName
     new 8481a2b6 fix(configui): use id instead of key

The 3 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 config-ui/src/hooks/useJIRA.jsx       | 2 +-
 plugins/jira/api/connection.go        | 2 +-
 plugins/jira/tasks/issue_extractor.go | 6 +++++-
 3 files changed, 7 insertions(+), 3 deletions(-)


[incubator-devlake] 02/03: fix(jira): use issuetype.name if issuetype has no untranslatedName

Posted by wa...@apache.org.
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 18c406b7214cccb64d8f582681d437b64f770a58
Author: Yingchu Chen <yi...@merico.dev>
AuthorDate: Thu Sep 1 21:49:24 2022 +0800

    fix(jira): use issuetype.name if issuetype has no untranslatedName
    
    closes #2920
---
 plugins/jira/tasks/issue_extractor.go | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/plugins/jira/tasks/issue_extractor.go b/plugins/jira/tasks/issue_extractor.go
index 19097a88..ffb732c0 100644
--- a/plugins/jira/tasks/issue_extractor.go
+++ b/plugins/jira/tasks/issue_extractor.go
@@ -59,7 +59,11 @@ func ExtractIssues(taskCtx core.SubTaskContext) error {
 		return err
 	}
 	for _, issueType := range issueTypes {
-		typeIdMapping[issueType.Id] = issueType.UntranslatedName
+		if issueType.UntranslatedName == "" {
+			typeIdMapping[issueType.Id] = issueType.Name
+		} else {
+			typeIdMapping[issueType.Id] = issueType.UntranslatedName
+		}
 	}
 
 	stdTypeMappings := make(map[string]string)


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

Posted by wa...@apache.org.
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)
 		}
 	}


[incubator-devlake] 03/03: fix(configui): use id instead of key

Posted by wa...@apache.org.
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 8481a2b6ca66ace362d1c16c958dc9f278b5d579
Author: Yingchu Chen <yi...@merico.dev>
AuthorDate: Fri Sep 2 09:59:05 2022 +0800

    fix(configui): use id instead of key
    
    closes #2930
---
 config-ui/src/hooks/useJIRA.jsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/config-ui/src/hooks/useJIRA.jsx b/config-ui/src/hooks/useJIRA.jsx
index 2c21f744..8d9d0808 100644
--- a/config-ui/src/hooks/useJIRA.jsx
+++ b/config-ui/src/hooks/useJIRA.jsx
@@ -132,7 +132,7 @@ const useJIRA = ({ apiProxyPath, issuesEndpoint, fieldsEndpoint, boardsEndpoint
   }, [issueTypesResponse])
 
   useEffect(() => {
-    setFields(fieldsResponse ? createListData(fieldsResponse, 'name', 'key') : [])
+    setFields(fieldsResponse ? createListData(fieldsResponse, 'name', 'id') : [])
   }, [fieldsResponse])
 
   useEffect(() => {