@@ -56,6 +56,10 @@ def comment_create_or_noop(self, payload: BugzillaWebhookRequest):
5656 log_context = {
5757 "request" : payload .dict (),
5858 "bug" : bug_obj .dict (),
59+ "jira" : {
60+ "issue" : linked_issue_key ,
61+ "project" : self .jira_project_key ,
62+ },
5963 }
6064 if not linked_issue_key :
6165 logger .debug (
@@ -104,6 +108,10 @@ def bug_create_or_update(
104108 log_context = {
105109 "request" : payload .dict (),
106110 "bug" : bug_obj .dict (),
111+ "jira" : {
112+ "issue" : linked_issue_key ,
113+ "project" : self .jira_project_key ,
114+ },
107115 }
108116 logger .debug (
109117 "Update fields of Jira issue %s for Bug %s" ,
@@ -144,6 +152,9 @@ def create_and_link_issue(
144152 log_context = {
145153 "request" : payload .dict (),
146154 "bug" : bug_obj .dict (),
155+ "jira" : {
156+ "project" : self .jira_project_key ,
157+ },
147158 }
148159 logger .debug (
149160 "Create new Jira issue for Bug %s" ,
@@ -175,6 +186,8 @@ def create_and_link_issue(
175186
176187 jira_key_in_response = jira_response_create .get ("key" )
177188
189+ log_context ["jira" ]["issue" ] = linked_issue_key
190+
178191 # In the time taken to create the Jira issue the bug may have been updated so
179192 # re-retrieve it to ensure we have the latest data.
180193 bug_obj = payload .getbug_as_bugzilla_object ()
0 commit comments