diff --git a/backend/plugins/webhook/api/blueprint_v200.go b/backend/plugins/webhook/api/blueprint_v200.go index df4a1f874df..006beaded00 100644 --- a/backend/plugins/webhook/api/blueprint_v200.go +++ b/backend/plugins/webhook/api/blueprint_v200.go @@ -23,6 +23,7 @@ import ( "github.com/apache/incubator-devlake/core/errors" "github.com/apache/incubator-devlake/core/models/domainlayer" "github.com/apache/incubator-devlake/core/models/domainlayer/devops" + "github.com/apache/incubator-devlake/core/models/domainlayer/ticket" "github.com/apache/incubator-devlake/core/plugin" "github.com/apache/incubator-devlake/plugins/webhook/models" ) @@ -44,5 +45,13 @@ func MakeDataSourcePipelinePlanV200(connectionId uint64) (plugin.PipelinePlan, [ Name: connection.Name, }) + // add board to scopes + scopes = append(scopes, &ticket.Board{ + DomainEntity: domainlayer.DomainEntity{ + Id: fmt.Sprintf("%s:%d", "webhook", connection.ID), + }, + Name: connection.Name, + }) + return nil, scopes, nil }