diff --git a/backend/plugins/jira/tasks/board_filter_begin_collector.go b/backend/plugins/jira/tasks/board_filter_begin_collector.go index 2b2a479eb64..f4751fc5ae2 100644 --- a/backend/plugins/jira/tasks/board_filter_begin_collector.go +++ b/backend/plugins/jira/tasks/board_filter_begin_collector.go @@ -70,9 +70,11 @@ func CollectBoardFilterBegin(taskCtx plugin.SubTaskContext) errors.Error { if err != nil { return errors.Default.Wrap(err, fmt.Sprintf("error updating record in _tool_jira_boards table for connection_id:%d board_id:%d", data.Options.ConnectionId, data.Options.BoardId)) } + logger.Info("full sync mode, update jql to %s", record.Jql) } return nil } + // first run if record.Jql == "" { record.Jql = jql @@ -80,6 +82,7 @@ func CollectBoardFilterBegin(taskCtx plugin.SubTaskContext) errors.Error { if err != nil { return errors.Default.Wrap(err, fmt.Sprintf("error updating record in _tool_jira_boards table for connection_id:%d board_id:%d", data.Options.ConnectionId, data.Options.BoardId)) } + logger.Info("first run, update jql to %s", record.Jql) return nil } // change diff --git a/backend/plugins/jira/tasks/board_filter_end_collector.go b/backend/plugins/jira/tasks/board_filter_end_collector.go index a997a83a9c3..8073903debd 100644 --- a/backend/plugins/jira/tasks/board_filter_end_collector.go +++ b/backend/plugins/jira/tasks/board_filter_end_collector.go @@ -52,8 +52,6 @@ func CollectBoardFilterEnd(taskCtx plugin.SubTaskContext) errors.Error { if err != nil { return errors.Default.Wrap(err, fmt.Sprintf("error getting board filter jql for connection_id:%d board_id:%d", data.Options.ConnectionId, data.Options.BoardId)) } - logger.Info("collect board filter jql:%s", filterInfo.Jql) - jql := filterInfo.Jql logger.Info("collect board filter jql:%s", jql) @@ -63,6 +61,7 @@ func CollectBoardFilterEnd(taskCtx plugin.SubTaskContext) errors.Error { if err != nil { return errors.Default.Wrap(err, fmt.Sprintf("error finding record in _tool_jira_boards table for connection_id:%d board_id:%d", data.Options.ConnectionId, data.Options.BoardId)) } + logger.Info("get board filter jql:%s", record.Jql) if record.Jql != jql { return errors.Default.New(fmt.Sprintf("connection_id:%d board_id:%d filter jql has changed, please use fullSync mode. And the previous jql is %s, now jql is %s", data.Options.ConnectionId, data.Options.BoardId, record.Jql, jql))