I'd like to create a daily notification email, consisting of all of the work items which have received either a new comment in the discussion section, had their status changed, were assigned to someone or had any of the other fields (Description, Effort, Due Date, etc.) changed.
I would like to compile these work items into an E-mail, but also include what the update itself was, and send all of the work items in one compiled email.
I know that it's possible to create a query which lists items where the 'Changed Date' variable is in the last 24 hours, but to the best of my knowledge the query tool cannot list out what action was performed specifically.
I'm currently doing this in a brand-new project environment, there are no custom variables set, no rules specified for work items, nothing, a blank canvas.
Thank you for your input!
Based on your requirement, you need to get the work item list which are changed in the last 24 hours and get the change details.
I am afraid that there is no out-of-box method can directly get the work item list and the changed details.
To meet your requirement, you can consider using PowerShell script to run Rest APIs to get the changed work item list and the change details in the last 24 hours.
Here is the sample code:
The sample above is using the Rest APIs: Wiql - Query By Wiql and Updates - List
It will get the changed work item list based on the work item field:System.changeddate.
And then it will use the Rest API to loop the changes of the each work item and get the updated fields.
Result:
At present, it only obtains a small amount of relevant information. You can further improve the code according to your needs to obtain more required information.