Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
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

Need to steps to connect Jira with Python

I'm trying to connect python to Jira and I'm looking for the steps needed to create the connection. I'm using Jira Server.  

2 answers

0 votes
Pramodh M Community Leader Jan 07, 2022

Hi @Alfredo Negrete 

May I ask what's the need here?

If you are just going to make some calls and achieve automation use the Python wrapper here

https://atlassian-python-api.readthedocs.io

Thanks,
Pramodh

We have a team wanting to use Python to interface with Jira and return back project information such as Stories, Bus, Tasks, etc...  So I'm trying to figure out set them up so they can access Jira securely with only accessing their data and no other project information besides what they have access to.

0 votes

Your Python code should talk to Jira over the REST API

See https://developer.atlassian.com/server/jira/platform/rest-apis/ for what calls can be made into Jira, and I've got https://realpython.com/api-integration-in-python/ and https://www.nylas.com/blog/use-python-requests-module-rest-apis/ as stuff to read when I get to the point where I need to learn about consuming REST APIs in Python code.

So based on this link(https://developer.atlassian.com/server/jira/platform/oauth/), I need to create an OAuthentication by installing Maven and OpenSSL on the server. Does that seem correct?

Maven is a build tool, you don't need it for a simple Oauth connection.  That page is about how to build and run the example Java code that can authenticate and then interact with Jira.

Nor are you looking at the (Jira) server here, the programs are to be installed on your development machine so you can build the client.

You'll want to use the same principles in your Python, not build a Java client.

Based on the articles, you still need some type of authentication.  OAuth is the most secure that that means I need to generate the authentication token at the server...is that not correct?

Yes, your code should use an Oauth token to login as an authorised account.

You don't need maven or openssl to do that, Python can do it.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
VERSION
8.20.1
TAGS
Community showcase
Published in Jira

Do you use Jira Cloud with Microsoft Teams?

Hi, Jira users! Do you use Jira alongside Microsoft Teams? We want to hear how you’ve used the power of Jira Cloud and Microsoft Teams (via the Jira Cloud for Microsoft Teams app) to achieve a team...

378 views 1 6
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