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


##########
plugins/jira/tasks/shared.go:
##########
@@ -35,3 +38,26 @@ func GetTotalPagesFromResponse(res *http.Response, args 
*helper.ApiCollectorArgs
        }
        return pages, nil
 }
+
+func GetStdStatus(statusKey string) string {
+       if statusKey == "done" {
+               return ticket.DONE
+       } else if statusKey == "new" {
+               return ticket.TODO
+       } else {
+               return ticket.IN_PROGRESS
+       }
+}
+
+func GetStatusInfo(db *gorm.DB) (map[string]models.JiraStatus, error) {
+       data := make([]models.JiraStatus, 0)
+       err := db.Table("_tool_jira_statuses").Scan(&data).Error

Review Comment:
   fixed.



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to