VaughanJ commented on code in PR #8972:
URL: https://github.com/apache/devlake/pull/8972#discussion_r3523445833


##########
backend/plugins/jira/impl/impl.go:
##########
@@ -249,6 +251,22 @@ func (p Jira) PrepareTaskData(taskCtx plugin.TaskContext, 
options map[string]int
                Options:        &op,
                ApiClient:      jiraApiClient,
                JiraServerInfo: *info,
+               Board:          scope,
+       }
+
+       // Look up the DevLake project this board belongs to via 
project_mapping.
+       // This is best-effort: if the board is not yet mapped (e.g. first run 
or
+       // manual trigger outside a blueprint) we leave DevLakeProjectName 
empty.
+       if scope != nil {

Review Comment:
   Can you expand on point 2, how do you see it working? Also is something 
similar seen elsewhere in the repo?
   
   As what I'm trying to achieve is that the ExtraJql query has the Devlake 
project name as a template that can be used in the query.
   
   Ideally I don't want to have to manually key project names as we have 1000s 
of projects and it seems wasteful when the Jira task and blueprint are already 
running under a project. So auto discovery of the project name to be used in 
the JQL is my angle.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to