Adityamalik123 commented on code in PR #27633:
URL: https://github.com/apache/airflow/pull/27633#discussion_r1036408954


##########
airflow/providers/atlassian/jira/operators/jira.py:
##########
@@ -76,16 +76,11 @@ def execute(self, context: Context) -> Any:
                 hook = JiraHook(jira_conn_id=self.jira_conn_id)
                 resource = hook.client
 
-            # Current Jira-Python SDK (1.0.7) has issue with pickling the jira 
response.
-            # ex: self.xcom_push(context, key='operator_response', 
value=jira_response)
-            # This could potentially throw error if jira_result is not 
picklable
             jira_result = getattr(resource, 
self.method_name)(**self.jira_method_args)
             if self.result_processor:
                 return self.result_processor(context, jira_result)

Review Comment:
   The official SDK returns 'id' in the output in all jira issue related 
methods. I have added these 
https://github.com/apache/airflow/pull/27633/files#diff-85731758409b94fa7ff2ab57860f1d4242f7a196768f003e7b618d88254afba4R84-R85
 which takes id from the response and performs `xcom_push` with that.



-- 
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