Formato de e-mail whinning personalizado do Bugzilla

1

O formato atual de e-mail é o seguinte -

ID, Severity, Priority, Plt, Assignee, Status, Resolution, Summary

O que eu preciso é como abaixo -

ID, Product, Component, Assignee, Status, Resolution, Summary

Minha versão do bugzilla é: 4.2.4

Eu editei abaixo os arquivos, mas sem sucesso:

/var/www/bugzilla/whine.pl

# Execute the saved query
        my @searchfields = qw(
            bug_id
            product
            component
            assigned_to
            bug_status
            resolution
            short_desc
        );

/var/www/bugzilla/template/en/default/whine/mail.txt.tmpl

[% FOREACH bug=query.bugs %]
  [% terms.Bug +%] [%+ bug.bug_id %]:
  [%+ urlbase %]show_bug.cgi?id=[% bug.bug_id +%]
   Product: [%+ display_value("product", bug.product) -%]
 Component: [%+ display_value("component", bug.component) -%]
  Assignee: [%+ bug.assigned_to %]
    Status: [%+ display_value("bug_status", bug.bug_status) %]
            [%- IF bug.resolution -%] Resolution: [% display_value("resolution", bug.resolution) -%]
            [%- END %]
   Summary: [% bug.short_desc %]

   [% END %]
[% END %]

/var/www/bugzilla/template/en/default/whine/mail.html.tmpl

[% FOREACH query=queries %]

    <h2>[%+ query.title FILTER html %]</h2>

    <table width="100%">
      <tr>
        <th align="left">ID</th>
        <th align="left">Product</th>
        <th align="left">Component</th>
        <th align="left">Assignee</th>
        <th align="left">Status</th>
        <th align="left">Resolution</th>
        <th align="left">Summary</th>
      </tr>

      [% FOREACH bug=query.bugs %]
        <tr>
          <td align="left"><a href="[%+ urlbase FILTER html %]show_bug.cgi?id=
              [%- bug.bug_id %]">[% bug.bug_id %]</a></td>
          <td align="left">[% display_value("product", bug.bug_product) FILTER html %]</td>
          <td align="left">[% display_value("component", bug.component) FILTER html %]</td>
          <td align="left">[% bug.assigned_to FILTER html %]</td>
          <td align="left">[% display_value("bug_status", bug.bug_status) FILTER html %]</td>
          <td align="left">[% display_value("resolution", bug.resolution) FILTER html %]</td>
          <td align="left">[% bug.short_desc FILTER html %]</td>
        </tr>
      [% END %]
    </table>
[% END %]
    
por SM_IND 13.07.2015 / 14:43

0 respostas

Tags