Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

authentification token atlassian

karim -Atlassway-
Banned
April 3, 2020 edited

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

1 answer

0 votes
Carlos Garcia Navarro
Community Champion
April 3, 2020

Hi @karim -Atlassway-

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

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, jira product discovery, jpd premium, product management, idea management, product discovery, jira premium, product planning, atlassian community, product development, roadmap planning, product prioritization, feature management

Introducing Jira Product Discovery Premium ✨

Jira Product Discovery Premium is now available! Get more visibility, control, and support to build products at scale.

Learn more
AUG Leaders

Atlassian Community Events