The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How can I limit a query results to 1?

Iko Azoulay
January 4, 2017
 

3 answers

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

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 _Catworkx_
Community Champion
November 10, 2022

Hi @Iko Azoulay ,

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

Fabio

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.