JQL using Java SDK

I have a JQL which I used to pull out all the JIRA tickets which are in a particular status. Now I am trying to do the same thing using Java SDK and I am not able to figure out a way to pass the JQL in the form of JSON and then parse result set JSON. Please let me know if there is any way that I can do this.

1 answer

0 vote

I don't know what the SDK has to do with this.

You run some JQL, you get a response which is a list of issues.  If you're in JIRA's UI, you will see that transformed into a report of some sort, whether a list in the issue navigator, a gadget result, a JIRA report, a board, etc etc etc. 

If you mean you're using the REST API, outside JIRA's UI, then see https://developer.atlassian.com/jiradev/jira-apis/jira-rest-apis/jira-rest-api-tutorials and have a good look at the one about "query issues".

If it's something else, I'm afraid you'll need to give us more of an explanation.

Hi Nic,

Sorry if I was not clear in my question, my ask is as below.

 1. I am trying to convert the JQL in the form of JSON request and run it using REST. 
 2. I am not using the JIRA UI and trying to connect to JIRA REST api using java, this is what I meant Java SDK.

I have found what I am looking for and thanks a lot for your time and sharing the link. Its useful.

Thanks,
Irfan Ali. 

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

3,224 views 14 19
Join discussion

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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot