How can I include the 'Issues' information in a Notification email

I have the YouTrack Integration set up with TeamCity and would like to include the information on the tickets that have been addressed in the Successful Build Notification email.  I have found the template for that email and have modified some other things successfully but am having a hard time trying to figure out the code for including the actual Issues in the email.  Can anyone provide me with some sample template code or point me in the right direction as to how I can get the info from the server.  It would probably be pretty close to this code for the changes template

<#macro build_changes bean>
  <#-- @ftlvariable name="bean" type="jetbrains.buildServer.notification.impl.ChangesBean" -->
  <#-- @ftlvariable name="webLinks" type="jetbrains.buildServer.serverSide.WebLinks" -->
  <div>
    <#assign modNum=bean.modificationsNumber/>
    <#if (modNum > 0)>
      <hr>
      <div>
        <#assign changesLink><a href='${webLinks.getViewChangesUrl(bean.build)}'>${modNum} change<@plural modNum/></a></#assign>
        Changes included (${changesLink})<#if bean.changesClipped>,
        only ${bean.modifications?size} are shown</#if>.
      </div>
      <#list bean.modifications as mod>
        <#assign pers><#if mod.personal>(personal build)</#if></#assign>
        <#assign description=mod.description?html/>
        <#if description?length == 0><#assign description='&lt;no comment&gt;'/></#if>
        <div>
          <#assign modLink><a href='${webLinks.getChangeFilesUrl(mod.id, mod.personal)}'>${mod.changes?size} file<@plural mod.changes?size/></a></#assign>
          Change ${mod.displayVersion} ${pers} by ${mod.userName} (${modLink}):
          <i>${description?trim}</i>
        </div>
      </#list>
    </#if>
  </div>
</#macro>

but I am not sure what I could change to get the issues instead of the changes.
thanks for your help.

Please sign in to leave a comment.