Heads up! On March 5, starting at 4:30 PM Central Time, our community will be undergoing scheduled maintenance for a few hours. During this time, you will find the site temporarily inaccessible. Thanks for your patience. Read more.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Using the JIRA API with Python 3.11

Harry Melamed
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 4, 2025

Trying to use the Python JIRA package and its not working for me.

 

Hoping someone here has an answer.

Using this import statement

 

from jira import JIRA


Import resolves to its containing file

What am I doing wrong here?

2 answers

0 votes
Pasam Venkateshwarrao
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 4, 2025

Hi @Harry Melamed 

Refer the atlassian developer page https://developer.atlassian.com/ to use python in jira 

You have to use import requests

0 votes
Matt Doar _Adaptavist_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 4, 2025

Which version are you using, how did you install it and how are you running it?

Harry Melamed
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 5, 2025

pip install JIRA

Python 3.11

can't get by the coding without an errorJira Library Error.png

 

Pasam Venkateshwarrao
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 5, 2025

@Harry Melamed you can use 

import requests

from requests.auth import HTTPBasicAuth

Harry Melamed
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 5, 2025

I'm not totally sure that you are seeing the problem here.   I have no issues with the requests, but with importing and using the jira module in Python.

Pasam Venkateshwarrao
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 5, 2025

@Harry Melamed you can use 

jira import JIRA

Harry Melamed
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 5, 2025

Once again, I'm not sure you are paying attention here.  I have tried that and posted the error that I'm seeing in my Pycharm UI.

 

 

Pasam Venkateshwarrao
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 5, 2025

@Harry Melamed 

This can be fixed by running the command like this

python3 -m pip install <package name>

If this is not the case, you may have to go in and start manually installing all dependencies if this is not being done automatically. This can happen if it was installed like pip install --user <package name> to my knowledge.

Harry Melamed
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 5, 2025

the JIRA module has been installed and the error persists.

Suggest an answer

Log in or Sign up to answer