The best practice to retrive data from JIRA server?

Hello,

 

I'd like to ask what would be the best practice to retrieve data from JIRA server? I have to find the most efficient way (in terms of response time or loading time) to load a bunch of issue-IDs.

I have full access to JIRA server so all ways are considerable (RESTful \ SSH \ command-line etc. - you tell me please).

Assumptions: My JIRA server is running on Windows server but in near future we plan to move it to Linux (I have to support both options)

 

Many thanks

2 answers

Why do you think JQL search does not work for you?

What data are you looking for? 

Rahul

I'm not familiar yet with JQL. I know it's JIRA SQL, but what do you actually mean in corresponding to response time? I have to retrieve all issue IDs which are assigned to a particular project.

Do you think that if I retrieve all issue IDS that are assigned to a particular project PLUS a particular user, it should run faster? Is this query running on the server side? Is there a technical document that explains how it actually work?

JQL is not JIRA SQL. It has a lot in common with SQL, but it is not SQL, it's Jira Query Language. SQL returns selections of data, JQL gives you a list of pointers to issues and nothing else. Anyway, Rahul's question is valid - why are you doing this? Not the how, but why? What can't you do in JIRA that you think you want to scrape out to another system? And then to answer the question too - use REST. It's platform independent (doesn't matter what your database or server operating systems are), it does not change much (and when it does, it's almost always more functions and existing ones do not change), it gives you standardised output, and you can run searches with it. Whatever method you use WILL run on the server.

Thanks! "What can't you do in JIRA that you think you want to scrape out to another system?" I have to generate a list with issue IDs (a combo-box) in a different system where I can provide a link to an Issue ID. One more question about REST: does it really runs fast with JIRA? i.e. it's based on URLs and browsers, and I saw sometimes it could ran slower than using a native command-line on the server side. Is this correct or I should prefer REST anyway? Thanks again

Definitely use REST for that. A "server side" command has zero advantages, as you need to use either a scrape via the ui (ugly and slower), a direct database read (often painful to construct and you don't want to have to issue it or maintain it) or a REST call. JIRA has *no* command line options, it's a service built to serve a web-application.

0 vote

Hi Mosh,

The safest way of retrieving such information is by using JIRA Query Language or JIRA's REST API.

Kind regards,
Felipe Kraemer

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Monday in Jira Software

How large do you think Jira Software can grow?

Hi Atlassian Community! My name is Shana, and I’m on the Jira Software team. One of the many reasons this Community exists is to connect you to others on similar product journeys or with comparabl...

597 views 6 12
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you