Missed Team ’24? Catch up on announcements here.

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

JQL input field

Deleted user March 31, 2015

Is there a way to re-use the search for issues advanced input field "JQL Input field"?

4 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
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.
April 1, 2015

Best code sample are JIRA sources smile

Sam Huawey June 24, 2015

Jira source code is very hard to obtain - one has to decompile jar files for that.

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.
June 24, 2015

Everyone who bought JIRA gets access to JIRA sources. Event the cheapest $10 license. I believe the same with other Atlassian products.

0 votes
Deleted user March 31, 2015

Does someone has a code example of this?

0 votes
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.
March 31, 2015

Hi Casper!

There is no such thing as JQL input component so you will need to build your own search. For sure it's a good idea to copy-paste from JIRA as much as possible.

I believe you can use JQL auto-complete REST methods (I think the same methods are used by JIRA) /rest/api/2/jql/autocompletedata and /rest/api/2/jql/autocompletedata/suggestions https://docs.atlassian.com/jira/REST/latest/#d2e4417

and to execute JQL you can use either REST search https://docs.atlassian.com/jira/REST/latest/#d2e3176 or do search on the server https://confluence.atlassian.com/display/JIRA/__Searching+in+JIRA

0 votes
Tomasz Stec
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.
March 31, 2015

Hi,

Script Runner provides such queries. You can construct jql queries using customfield values, compare them, perform basic operations such (addition,substraction, multipication, division). Check documentation about JQL functions.

happy script writing!

Tom

Deleted user March 31, 2015

This is not what i mean. I want to use a jql input field in my own add-on.

Tomasz Stec
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.
March 31, 2015

Hmm, i don't know any such case as you say. I could be wrong, but as far as i know JIRA api does not provide ready to use jql field. The only thing you may find useful is JqlQueryBuilder api class to build JQL queries programmatically.

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

TAGS
AUG Leaders

Atlassian Community Events