Hello,
since there is no selection option in the column option on the part of DevOps, a workaround must be created.
The status of a work item and the last comment of the work item in a HTML table should be sent by email.
To make this possible, the last comment of the work item should be updated so that it appears first in the history.
Question:
How do I get the newest comment and update it? (so that the updated comment will be first in "history)
--> If there is a solution to update an existing comment, it will be a suitable workaround for a requested feature in DevOps:
Visual Studio Feedback
⬇️
Thanks you for your answer!
Yes, your solution works to put the comment first in history (thats great!)
Maybe I am doing something wrong, but with your solution the comment will be overwritten and replaced by the new text.
--> Is there a change to
a) add a word to an existing comment without deleting the existing text (which will put the comment first in history)
or
b) just get an existing comment and force an update on that (so that it appears first in history)
Hi @DGN_NB,
Below is an example of how you can retrieve the newest comment and update it with your own text. I am using this example from the Azure DevOps documentation:
In the example I am using this expression to get the correct comment id from the first HTTP request:
body('Send_an_HTTP_request_to_Azure_DevOps')['comments'][0]['id']
Tomac
986
Moderator
stampcoin
699
Super User 2025 Season 2
Riyaz_riz11
577
Super User 2025 Season 2