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

[incubator-devlake] branch main updated: fix: changelog convert error (#2201)

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

zhangliang2022 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 2cf6794e fix: changelog convert error (#2201)
2cf6794e is described below

commit 2cf6794ef40990c11b2171b4b99890b64d18df34
Author: NaRro <co...@merico.dev>
AuthorDate: Wed Jun 15 17:18:39 2022 +0800

    fix: changelog convert error (#2201)
---
 plugins/jira/tasks/changelog_convertor.go | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/plugins/jira/tasks/changelog_convertor.go b/plugins/jira/tasks/changelog_convertor.go
index 92eee676..e2801ad5 100644
--- a/plugins/jira/tasks/changelog_convertor.go
+++ b/plugins/jira/tasks/changelog_convertor.go
@@ -120,11 +120,11 @@ func ConvertChangelogs(taskCtx core.SubTaskContext) error {
 				}
 			}
 			if row.Field == "status" {
-				fromStatus, ok := statusMap[changelog.FromValue]
+				fromStatus, ok := statusMap[row.FromString]
 				if ok {
 					changelog.FromValue = GetStdStatus(fromStatus.StatusCategory)
 				}
-				toStatus, ok := statusMap[changelog.ToValue]
+				toStatus, ok := statusMap[row.ToString]
 				if ok {
 					changelog.ToValue = GetStdStatus(toStatus.StatusCategory)
 				}