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

Query Jira with SQL

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 Community Leader Jul 04, 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

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