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 b2528427 fix: jira subtask collectAccounts ended unexpectedly (#3655)
b2528427 is described below

commit b2528427453b4e74469f4f622df789fc3e95bc48
Author: abeizn <[email protected]>
AuthorDate: Fri Nov 4 11:15:29 2022 +0800

    fix: jira subtask collectAccounts ended unexpectedly (#3655)
---
 plugins/jira/tasks/issue_extractor.go | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/plugins/jira/tasks/issue_extractor.go 
b/plugins/jira/tasks/issue_extractor.go
index 14c83953..bf6f6239 100644
--- a/plugins/jira/tasks/issue_extractor.go
+++ b/plugins/jira/tasks/issue_extractor.go
@@ -19,11 +19,12 @@ package tasks
 
 import (
        "encoding/json"
-       "github.com/apache/incubator-devlake/errors"
        "strconv"
        "strings"
        "time"
 
+       "github.com/apache/incubator-devlake/errors"
+
        "github.com/apache/incubator-devlake/plugins/core/dal"
 
        "github.com/apache/incubator-devlake/plugins/core"
@@ -153,7 +154,9 @@ func extractIssues(data *JiraTaskData, mappings 
*typeMappings, ignoreBoard bool,
                results = append(results, changelogItem)
        }
        for _, user := range users {
-               results = append(results, user)
+               if user.AccountId != "" {
+                       results = append(results, user)
+               }
        }
        if !ignoreBoard {
                results = append(results, &models.JiraBoardIssue{

Reply via email to