Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Unable to make connection between JIRA and Python

I'm trying to connect to Jira using python, but my python applications gets stopped after running for almost 1-2 minutes long. Basically it shows: "python.exe has stopped working"

My code is as below:

#import libraries
from jira import JIRA    
from jira.exceptions import JIRAError    
import sys    
options = {'server': 'https://sipcg.atlassian.net'}    

try:    
    print("start!")    
    jira = JIRA(options=options, auth=('xyz', 'xyz'))    
except JIRAError as e:    
    if e.status_code == 401:    
        print ("Login to JIRA failed. Check your username and password")    
print ("done!")    

#Please help me in order to connect using jiracli    
#Note: ignore the python indentation attached here 

 

1 answer

0 votes
Thomas Deiler Community Leader Apr 28, 2021

Dear @Ashish ,

when debugging problems, I always send the rest call from script with a REST API browser extension to verify.

Have you done this already? I could be an authentication error. It could be a Web Proxy issue. (The traffic of the browser is filtered by a company proxy - on command line request run into the void). It could be a firewall issue (tried to telnet the server?)

So long

Thomas

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Site Admin
TAGS
Community showcase
Published in Jira Service Management

ThinkTilt is joining the Atlassian Family!

This morning, Atlassian announced the acquisition of ThinkTilt , the maker of ProForma, a no-code/low code form builder with 700+ customers worldwide. ThinkTilt helps IT empower any team in their or...

846 views 30 33
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you