自定义 Bugzilla 抱怨电子邮件格式

自定义 Bugzilla 抱怨电子邮件格式

目前的电子邮件格式如下 –

ID、严重性、优先级、Plt、受让人、状态、解决方案、摘要

我需要的是如下 –

ID、产品、组件、受让人、状态、解决方案、摘要

我的 bugzilla 版本是:4.2.4

我已经编辑了以下文件但无济于事:

/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 %]

相关内容