Skip to content

Commit

Permalink
fix: updating jira storypoint field should refresh all records (#8048) (
Browse files Browse the repository at this point in the history
#8049)

* fix: updating jira storypoint field should refresh all records

* fix: jira storypointfield e2e

Co-authored-by: Klesh Wong <zhenmian.huang@merico.dev>
  • Loading branch information
github-actions[bot] and klesh authored Sep 13, 2024
1 parent dbb29b3 commit 2e768b5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions backend/plugins/jira/e2e/issue_relationship_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ func TestIssueRelationshipDataFlow(t *testing.T) {
Options: &tasks.JiraOptions{
ConnectionId: 2,
BoardId: 8,
ScopeConfig: &models.JiraScopeConfig{},
},
}

Expand Down
5 changes: 4 additions & 1 deletion backend/plugins/jira/tasks/issue_extractor.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 2e768b5

Please sign in to comment.