darwinyip edited a comment on issue #11133:
URL: https://github.com/apache/airflow/issues/11133#issuecomment-698568667


   FYI this is my current workaround:
   ```
   # Create a HTTP connection for JIRA
   
   from jira import JIRA
   
   def update_jira():
       hook = HttpHook(http_conn_id='jira_http')
       conn = hook.get_connection(hook.http_conn_id)
       url = conn.host
       creds = (conn.login, conn.password)
       jira_client = JIRA(url, basic_auth=creds)
   ```
   
   Alternatively:
   ```
   # Create a HTTP connection for JIRA
   
   from jira import JIRA
   
   def update_jira():
       conn = BaseHook.get_connection('jira_http')
       url = conn.get_uri()
       creds = (conn.login, conn.password)
       jira_client = JIRA(url, basic_auth=creds)
   ```


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

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


Reply via email to