hello Team
I used this for authentification
#!/usr/bin/python3.6
# library modules
from jira import JIRA
user = 'karim.belhadj@ovyka.com'
apikey = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
server = 'https://ist-efr.atlassian.net'
options = {
'server': server
}
jira = JIRA(options, basic_auth=(user,apikey) )
# print all of the project keys as an example
for project in jira.projects():
print(project.key)
I get this error cannot import name 'JIRA' from 'jira'
Thank you
I wonder if this article may help find the root of your problem: https://github.com/pycontribs/jira/issues/320
From the aforementioned article:
"There are a couple things that could be happening here.
A. There is a clashing jira.py
B. The python jira module is not installed at all
C. The python jira module is not installed for the correct version"
You can find more details regarding the problems and solutions in the article. I hope it helps.
Carlos
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.