Email Alert for Version Doctype

Hi,

I want to create an email alert for Version Doctype, by which I want to pull all the information stored.
So, that the owner of the document should now what field was changed, who has changed, what was the old value and what is the new value?

But the issue is the Version Doctype structure is not very simple it is a bit tricky to deal with this.

Any idea on this will be appreciated.

I am using the below code but the email comes as blank.

{% if doc.data.comment %}
<h4>{{ __("Comment") + " (" + doc.data.comment_type }})</h4>
<p>{{ doc.data.comment }}</p>
{% endif %}

{% if doc.data.changed and doc.data.changed.length %}
<h4>Values Changed</h4>
<table>
  <thead>
    <tr>
      <td style="width: 33%">Property</td>
      <td style="width: 33%">Original Value</td>
      <td style="width: 33%">New Value</td>
    </tr>
  </thead>
  <tbody>
    {% for item in doc.data.changed %}
    <tr>
      <td>{{ aa }}</td>
      <td>{{ item[1] }}</td>
      <td>{{ item[2] }}</td>
    </tr>
    {% endfor %}
  </tbody>
</table>
{% endif %}

Regards
Ruchin Sharma