Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Query Jira with SQL

dboeke
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!
June 18, 2021

If you have access to the backend of a Jira deployment you can query the database directly with SQL, but what if you are an end user? 

I have been working on a open source project named Steampipe that uses Postgres Foreign Data Wrappers (FDW) to query cloud APIs via CLI or any Postgres client.

Our open source community just released a plugin for Jira:  https://hub.steampipe.io/plugins/turbot/jira  You run it from your local desktop and configure it with your API credentials so it only has access to data visible to those creds.  Here is an example query:

select
display_name,
account_type
as type,
active as status,
account_id
from
jira_user;
+-------------------------------+-----------+--------+-----------------------------+
| display_name | type | status | account_id |
+-------------------------------+-----------+--------+-----------------------------+
| Confluence Analytics (System) | app | true | 557058:cbc04d7be567aa5332c6 |
| John Smyth | atlassian | true | 1f2e1d34e0e56a001ea44fc1 |
+-------------------------------+-----------+--------+-----------------------------+

 Hope others find it useful!

1 comment

JimmyVanAU
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.
July 4, 2021

This looks amazing! Thanks for tagging cloud and providing a link.

Quick question, while it's not yet released, are there plans to integrate it with native data pipelines?

On Cloud, this is on the roadmap - https://www.atlassian.com/roadmap/cloud?category=migrating&status=inTheWorks&search=data%20insights

While some documentation exists for Data Center - https://confluence.atlassian.com/adminjiraserver/data-pipeline-1027142324.html 

I'm guessing it may not even matter, as it looks like this is designed to natively tap into the database and bypass anything Atlassian build. Look forward to hearing more about it!

Comment

Log in or Sign up to comment
TAGS
AUG Leaders

Atlassian Community Events