This is an automated email from the ASF dual-hosted git repository. klesh pushed a commit to branch kw-jira-bp-option-spell in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git
commit a653769a4196a1b141e28b86860a7dea9c8fb704 Author: Klesh Wong <[email protected]> AuthorDate: Mon Dec 11 12:22:44 2023 +0800 fix: jira generated plan having capitalized options --- backend/helpers/pluginhelper/api/api_collector_with_state.go | 2 +- backend/plugins/jira/tasks/task_data.go | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/backend/helpers/pluginhelper/api/api_collector_with_state.go b/backend/helpers/pluginhelper/api/api_collector_with_state.go index 47f653ccd..7cb85fa2f 100644 --- a/backend/helpers/pluginhelper/api/api_collector_with_state.go +++ b/backend/helpers/pluginhelper/api/api_collector_with_state.go @@ -43,7 +43,7 @@ type ApiCollectorStateManager struct { } type CollectorOptions struct { - TimeAfter string `json:"timeAfter,omitempty"` + TimeAfter string `json:"timeAfter,omitempty" mapstructure:"timeAfter"` } // NewStatefulApiCollector create a new ApiCollectorStateManager diff --git a/backend/plugins/jira/tasks/task_data.go b/backend/plugins/jira/tasks/task_data.go index 185eb4d43..6d9336e9b 100644 --- a/backend/plugins/jira/tasks/task_data.go +++ b/backend/plugins/jira/tasks/task_data.go @@ -26,11 +26,11 @@ import ( ) type JiraOptions struct { - ConnectionId uint64 `json:"connectionId"` - BoardId uint64 `json:"boardId"` - ScopeConfig *models.JiraScopeConfig `json:"scopeConfig"` - ScopeConfigId uint64 - PageSize int + ConnectionId uint64 `json:"connectionId" mapstructure:"connectionId"` + BoardId uint64 `json:"boardId" mapstructure:"boardId"` + ScopeConfig *models.JiraScopeConfig `json:"scopeConfig" mapstructure:"scopeConfig"` + ScopeConfigId uint64 `json:"scopeConfigId" mapstructure:"scopeConfigId"` + PageSize int `json:"pageSize" mapstructure:"pageSize"` api.CollectorOptions `mapstructure:",squash"` }
