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

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


The following commit(s) were added to refs/heads/release-v0.12 by this push:
     new 07e63c9a fix: use issueType.Name as issue.Type (#3442)
07e63c9a is described below

commit 07e63c9a5c0c649b36466242884170db79e4b32f
Author: mindlesscloud <[email protected]>
AuthorDate: Fri Oct 14 15:04:31 2022 +0800

    fix: use issueType.Name as issue.Type (#3442)
---
 plugins/jira/tasks/issue_extractor.go | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

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

Reply via email to