How I can import a query result for a issue about bug using my java application?

I would like use my own java application to perform a searching on jira issue database and collect the returned informations about bugs opened for a especific project and put it into an object like "Issues" or something. I can do such thing? Anyone could help me?

3 answers

Are you going to be searching a remote Jira application? If so, you can use Jira’s remote APIs to do this. You could even do it over simple HTTP by getting back your resuts in XML format and parsing that.

As Cedric says, you could use either SOAP or REST to do the same. SOAP has a restriction that it cannot give you the issue links, you need to get it either via REST or use the XML results as explained in Cedric's link above.

Right! Only remarking what I need, I want to construct a java application that checks the issues repository online of Jira with a query, searching for a especific set of issues opened and get this resulting set as a list of issues. I don't want to be forced to download any Jira plugins, but just java classes or packages that enables me to do this. Seems now I left clear what I need.

The REST api will help me in this task? Where I can download the Library?

So, I need to dowloand the Jira plugin to develop my search engine? I would like avoid to download this plugin and use only the package of classes of Jira. I can't do this?

The above documentation is for JIRA classes and not for any plugin. Are you looking to write a remote Java app or a JIRA plugin?

I intend to automate part of my application so I am looking to write a remote Java application using the classes of Jira to create my search engine. Does not interest to me download the Jira application for this purpose, because the search will be always the same.

Lets start again.

You are building a java app that resides outside of JIRA and needs to talk to JIRA and get a list of issue from a project or multiple project.

To do this you have few choices

1, Talk to JIRA via SOAP

Above page all the information you need to build a SOAP client for JIRA download the dependency api's where required.


Has all the information related to REST api in JIRA

If you are intrested only in querying your JIRA for issues have a look at here

No need of any classes to be downloded and added as dependency in your app, all you need is ability to parse and convert JSON strings in to objects.

3, I wont not advice this and your JIRA team might say NO NO for this.

there is nothing in the world stopping you from directly querying the database that JIRA talks to all you need is the connection details ofcourse.

has the schema information

have fun coding

I have a doubt: I need be logged on the Jira to talk to it via REST or SOAP or I can do it anonymously? I ask this because I have not a Jira account and I don't want need to do one to my application work.

That depends on whether the remote Jira application allows anonymous searches. If you need to log in to search with the web interface, you’ll need to log in for REST or SOAP or getting the results in XML format.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 27, 2018 in Portfolio for Jira

Introducing a new planning experience in Portfolio for Jira (Server/DC)

In the past, Portfolio for Jira required a high degree of detail–foresight that was unrealistic for many businesses to   have–in   order to produce a reliable long-term roadmap. We're tur...

2,690 views 18 21
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