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?
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?
@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:
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
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.
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.
Badges are a great way to show off community activity, whether you’re a newbie or a Champion.Learn more
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG