Forums

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

Jira Python API (only localhost)

Eelco Middelburg
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!
September 19, 2018

Hi,

I just started today with experimenting the Jira REST API (using Python). I'm following these steps:

https://jira.readthedocs.io/en/master/installation.html 

Then started my Python script like this:

from jira import JIRA

jira = JIRA()
jac = JIRA('https://jira.wehkampgroep.nl')

It keeps using localhost when running this code. It looks that the "jac"
parameter doesn't work.

Any idea?

Regards,
Eelco

 

1 answer

0 votes
Edwin Kyalangalilwa
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.
September 19, 2018

Hi @Eelco Middelburg,

It should be 

options = {'server': 'https://jira.wehkampgroep.nl'}
jac = JIRA(options)

 You'll also have to pass authentication. Authentication

Gautham Rajsimha
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!
December 12, 2018

How do I connect to my localhost using the same command? 

Edwin Kyalangalilwa
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.
December 12, 2018

Hi @Gautham Rajsimha,

It's the same options but with localhost instead.

options = {'server': 'http://localhost:8080'}

Suggest an answer

Log in or Sign up to answer