Missed Team ’24? Catch up on announcements here.

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

Can I use JQL queries inside my Jira plugin

Stjepan Vukadin August 19, 2015

Hi,

is it possible to use JQL queries inside plugin that your are developing?

If so, can you please provide a very simple rudimentary example how to implement it, or even just point me in a correct direction what classes from JIRA SDK should I use.

Regards,
Stjepan 

3 answers

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

1 vote
Answer accepted
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
August 19, 2015

It's well buried in the docs now, but have a look at https://confluence.atlassian.com/display/JIRA/__Searching+in+JIRA

1 vote
Volodymyr Krupach
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.
August 19, 2015

Hi Stjepan,

Sure it's possible. Just search for JqlQueryBuilder here and you will find a lot of samples.

0 votes
Stjepan Vukadin August 19, 2015

Thank you for your answers!

Is it possible just to pass a JQL string (e.g. "project = TEST AND issuetype = Story") and then query JIRA?

The problem with JqlQueryBuilder in my case is that I am getting JQL queries as strings.

Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
August 19, 2015

The link I gave tells you both how to build queries by adding clauses, and by parsing plain JQL strings (although it is a bit densely written, it is in there - look for the word "parse")

Stjepan Vukadin August 19, 2015

Yes, found it! Thank you! Work's like a charm.

TAGS
AUG Leaders

Atlassian Community Events