From 2e768b5b6aba7369ad93608846c0d6f7e9ba626c Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 13 Sep 2024 15:41:27 +0800 Subject: [PATCH] fix: updating jira storypoint field should refresh all records (#8048) (#8049) * fix: updating jira storypoint field should refresh all records * fix: jira storypointfield e2e Co-authored-by: Klesh Wong --- backend/plugins/jira/e2e/issue_relationship_test.go | 1 + backend/plugins/jira/tasks/issue_extractor.go | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/backend/plugins/jira/e2e/issue_relationship_test.go b/backend/plugins/jira/e2e/issue_relationship_test.go index e13e5900cd2..be36473bfc0 100644 --- a/backend/plugins/jira/e2e/issue_relationship_test.go +++ b/backend/plugins/jira/e2e/issue_relationship_test.go @@ -36,6 +36,7 @@ func TestIssueRelationshipDataFlow(t *testing.T) { Options: &tasks.JiraOptions{ ConnectionId: 2, BoardId: 8, + ScopeConfig: &models.JiraScopeConfig{}, }, } diff --git a/backend/plugins/jira/tasks/issue_extractor.go b/backend/plugins/jira/tasks/issue_extractor.go index 760b8c7cb4e..686f23ff4c4 100644 --- a/backend/plugins/jira/tasks/issue_extractor.go +++ b/backend/plugins/jira/tasks/issue_extractor.go @@ -70,7 +70,10 @@ func ExtractIssues(subtaskCtx plugin.SubTaskContext) errors.Error { ConnectionId: data.Options.ConnectionId, BoardId: data.Options.BoardId, }, - SubtaskConfig: mappings, + SubtaskConfig: map[string]any{ + "typeMappings": mappings, + "storyPointField": data.Options.ScopeConfig.StoryPointField, + }, }, Extract: func(row *api.RawData) ([]interface{}, errors.Error) { return extractIssues(data, mappings, row, userFieldMap)