This is an automated email from the ASF dual-hosted git repository.

abeizn pushed a commit to branch release-v1.0
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git


The following commit(s) were added to refs/heads/release-v1.0 by this push:
     new 2e768b5b6 fix: updating jira storypoint field should refresh all 
records (#8048) (#8049)
2e768b5b6 is described below

commit 2e768b5b6aba7369ad93608846c0d6f7e9ba626c
Author: github-actions[bot] 
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Fri Sep 13 15:41:27 2024 +0800

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

Reply via email to