If I return the top 1 is it always going to be the latest one completed? `az devops pr list --top 1 --status completed`

Toby Steele 1 Reputation point
2021-03-03T21:54:36.047+00:00

---I tried to find a devops tag but that tag search control has proven to be worthless almost. ---

Since I am only trying to get one record, can I count on it being the latest created one? or the latest completed one?

az devops pr list --top 1 --status completed

I have heard I couldnt rely on the sort by default but that was always in the context of multiple items returned. In the above query I am only wanting one of them. Does the default sort do so by created date or by status_change?

thanks

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
35,934 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Dave Patrick 426.1K Reputation points MVP
    2021-03-03T22:20:03.567+00:00

    Devops / TFS is not currently supported here on QnA. The product group for Azure DevOps / TFS actively monitors questions over at
    https://developercommunity.visualstudio.com/spaces/21/index.html
    https://developercommunity.visualstudio.com/spaces/22/index.html

    --please don't forget to Accept as answer if the reply is helpful--

    0 comments No comments

  2. Toby Steele 1 Reputation point
    2021-03-05T15:58:52.823+00:00

    Hi patrick,

    thanks for the feedback. One those links I dont see a way to ask a question and instead it seems to just be for product bugs/feature requests. I'm looking for the forums to post a question to with a response from MS personnel like I used to do for the MSDN forums...has always come with the VS subscription.

    0 comments No comments