This is an automated email from the ASF dual-hosted git repository.
klesh 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 44fa3f23e fix: jira data scope not trans (#6715)
44fa3f23e is described below
commit 44fa3f23e352bacd5d7482ac807996e2e03636eb
Author: abeizn <[email protected]>
AuthorDate: Tue Jan 2 18:01:11 2024 +0800
fix: jira data scope not trans (#6715)
* fix: jira data scope not trans
* fix: get scope id from impl
* fix: remove log
* fix: remove unuseless code
---
backend/plugins/jira/impl/impl.go | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/backend/plugins/jira/impl/impl.go
b/backend/plugins/jira/impl/impl.go
index 7e50bdb35..6686b775a 100644
--- a/backend/plugins/jira/impl/impl.go
+++ b/backend/plugins/jira/impl/impl.go
@@ -209,6 +209,9 @@ func (p Jira) PrepareTaskData(taskCtx plugin.TaskContext,
options map[string]int
if err != nil {
return nil, errors.Default.Wrap(err, fmt.Sprintf("fail
to find board: %d", op.BoardId))
}
+ if op.ScopeConfigId == 0 && scope.ScopeConfigId != 0 {
+ op.ScopeConfigId = scope.ScopeConfigId
+ }
}
if op.ScopeConfig == nil && op.ScopeConfigId != 0 {
var scopeConfig models.JiraScopeConfig
@@ -221,6 +224,9 @@ func (p Jira) PrepareTaskData(taskCtx plugin.TaskContext,
options map[string]int
return nil, errors.BadInput.Wrap(err, "fail to make
scopeConfig")
}
}
+ if op.ScopeConfig == nil && op.ScopeConfigId == 0 {
+ op.ScopeConfig = new(models.JiraScopeConfig)
+ }
// set default page size
if op.PageSize <= 0 || op.PageSize > 100 {