Way to use Azure DevOps REST API and WIQL to retrieve an audit trail for user stories, including acceptance details such as the person, email address, and date-time?

Shyam Kumar 846 Reputation points
2025-04-16T16:29:03.68+00:00

Based on my investigation,

Azure DevOps does not provide direct built-in work item queries to extract this information. However, using REST API's "Work Item Revisions" .can help I believe.

I have done some investigation,

Here are the links - https://learn.microsoft.com/en-us/rest/api/azure/devops/wit/?view=azure-devops-rest-7.1

Please suggest how we can do this with clear steps ?

and from where I should start? to implement this?

Azure DevOps
{count} votes

1 answer

Sort by: Most helpful
  1. Madugula Jahnavi 495 Reputation points Microsoft External Staff Moderator
    2025-04-29T16:07:22.6266667+00:00

    Hello Diptesh Kumar,

    To get the work item history items like who changed it or who accessed the specific work item, you can use updates-List as it returns the work item revisions.

    API:

    GET https://dev.azure.com/{organization}/{project}/_apis/wit/workItems/{id}/updates?api-version=5.1
    

    Also, you can use updates-Get to return a single update for a work item as given in the MS Doc.

    GET https://dev.azure.com/{organization}/{project}/_apis/wit/workItems/{id}/updates/{updateNumber}?api-version=5.1
    
    

    Hope this helps!

    If the answer is helpful, please click on Accept Answer and upvote it. If you still have any further queries, please click on Comment.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.