You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@devlake.apache.org by GitBox <gi...@apache.org> on 2022/08/08 04:04:53 UTC

[GitHub] [incubator-devlake] narrowizard commented on a diff in pull request #2692: fix: jira changelog.FromValue & changelog.ToValue

narrowizard commented on code in PR #2692:
URL: https://github.com/apache/incubator-devlake/pull/2692#discussion_r939805727


##########
plugins/jira/tasks/issue_changelog_convertor.go:
##########
@@ -127,8 +136,14 @@ func ConvertIssueChangelogs(taskCtx core.SubTaskContext) error {
 				}
 			}
 			if row.Field == "status" {
-				changelog.FromValue = getStdStatus(row.FromString)
-				changelog.ToValue = getStdStatus(row.ToString)
+				changelog.FromValue = ticket.IN_PROGRESS
+				changelog.ToValue = ticket.IN_PROGRESS
+				if fromStatus, ok := statusMap[row.FromString]; ok {
+					changelog.FromValue = fromStatus.StatusCategory

Review Comment:
   `getStdStatus(fromStatus.StatusCategory)`



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@devlake.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org