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/01 14:01:03 UTC
[incubator-devlake] branch main updated: fix(jira): use issuetype.name if issuetype has no untranslatedName
This is an automated email from the ASF dual-hosted git repository.
warren pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git
The following commit(s) were added to refs/heads/main by this push:
new 1001a0c5 fix(jira): use issuetype.name if issuetype has no untranslatedName
1001a0c5 is described below
commit 1001a0c5948158eced42b186ba9ff5e4044a4dee
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 bb731d05..47a101e5 100644
--- a/plugins/jira/tasks/issue_extractor.go
+++ b/plugins/jira/tasks/issue_extractor.go
@@ -185,7 +185,11 @@ func getTypeMappings(data *JiraTaskData, db dal.Dal) (*typeMappings, error) {
return nil, 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)
standardStatusMappings := make(map[string]StatusMappings)