How can I limit a query results to 1?

Iko Azoulay January 4, 2017

3 answers

1 accepted

0 votes
Answer accepted
Robert Massaioli _Atlassian_
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 4, 2017

If you use the search REST API you can just set the pagination to 1.

But why do you want this? I don't think that JQL currently supports a limit keyword.

0 votes
Fabio Racobaldo _Herzum_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
November 10, 2022

Hi @Iko Azoulay ,

unfortunately you can't limit a query through a JQL but just in a REST api.


0 votes
Iko Azoulay January 4, 2017

It is a complex answer smile

My first aim is to have context aware boards, meaning when I have a certain board of say epics, I would like to drill down from it to a board of it's tasks/user stories. Since this functionality does not exist, I thought of creating of my own by creating another board with the following query:

lastViewed limit 1. This way when moving from the epic board to the user story board it whould have been easy.

Suggest an answer

Log in or Sign up to answer