This is an automated email from the ASF dual-hosted git repository.
abeizn 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 a829b29d2 fix: updating jira storypoint field should refresh all
records (#8048)
a829b29d2 is described below
commit a829b29d28246f66a7d3ff20de8c5ec5c0e55d56
Author: Klesh Wong <[email protected]>
AuthorDate: Fri Sep 13 15:29:06 2024 +0800
fix: updating jira storypoint field should refresh all records (#8048)
* fix: updating jira storypoint field should refresh all records
* fix: jira storypointfield e2e
---
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 e13e5900c..be36473bf 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 760b8c7cb..686f23ff4 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)