Forums

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

how to connect jira database using python

chaitali k October 20, 2020

how to connect jira database using python

2 answers

1 vote
Joe Pitt
Community Champion
October 20, 2020

I can't answer you question, but doing anything but reading the DB directly can corrupt it. 

0 votes
Nic Brough -Adaptavist-
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.
October 20, 2020

First hit on search engine for me was for MySQL (one of the four types Jira supports) - see https://www.w3schools.com/python/python_mysql_getstarted.asp

However, exactly as @Joe Pitt suggests, I cannot recommend it.

  • You must never ever write to a Jira database when it is active.
  • You should probably not waste your time with SQL at all - the database is not suitable for reporting in the slightest, it's a data store, not a database, and you really need to understand it thoroughly before you'll be able to get anything useful from it.  Even a simple "show me a simple issue without custom fields, history, etc" leads to statements starting at 20 joins and they rapidly get more complex.  Oh, and the database regularly changes on upgrade.

Please, look to use the REST API for this - you can get a whole issue with a single statement, and Python has good REST interface.

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