Is there a way to get the latest result of the search query (JQL )In JIRA?
I'm not sure the question is clear. The correct answer to the question as stated is "To get the latest result of a query, run the query again", but I think there is more to the question than that
My guess is that there is something more behind the "get" part of the question. I suspect you want an export of the results, or you want to do the "get" remotely so some other system gets the results and can work with them. Is that right?
Hi Nic! Yes, the question is a little bit ambiguous.
I understand that she wants to retrieve just one issue from the JQL search: instead all that matches the query, retrieve just the issue shown in the last place.
So, if she orders the query by updatedDate, she would want to retrieve just one issue: the issue that was updated the most time ago.
Rita, can you clarify your question?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @Nic Brough [Adaptavist] , @Ignacio pulgar
What I'm trying to do that i need to run a query , the result of this query for example 10 issues.
What I'm searching to do is to get the latest issue for every user
Is that clear?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I'm not sure I understand the requirement, but
The other question is "where" - what is this query for and where are you running it?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Nic Brough [Adaptavist]
for example here is my query project = Test AND status = "Approved AND assignee in (currentUser()) ORDER BY updatedDate DESC
it gave me 4 issues:
Tst-130
Tst-104
Tst-80
Tst-40
What I need is the latest issue I have as current assignee.
I want in the JQL to gave me only the Tst-130
I hope it is now clear
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It is now clear
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yep, "latest" = "last updated (by any edit, comment or transition)
The short answer is that JQL is for finding issues that match criteria on them, not selecting within a list of answers. So it doesn't have a way to do this.
You need to find a way to limit the results from a search in whatever you are reporting the results of the search in, not mangle the search.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Nic Brough [Adaptavist] we cannot do this in a jql ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I think Nic will agree there's no built-in way of doing so in JQL.
You will definitely need a plugin which helps you with this purpose.
I'd accept Pablo Beltran's answer, adding that it is not possible to get what you want through the mere use of JQL.
Regards.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Nope, Ignacio covers it - you need code. JQL is for finding all the issues that match, not selecting within the answers you get.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.