Reassigning a bug when it is in RESOLVED status

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Reassigning a bug when it is in RESOLVED status

abou202
I have bunch of bugs that have been resolved but they need to be reassign to the Reporter....I have been reopening the bugs ....reassign them and then change the status. Is there a one action way to get this done?

Thanks
Reply | Threaded
Open this post in threaded view
|

Re: Reassigning a bug when it is in RESOLVED status

charl
I am using Bugzilla 3.0.8. The way should work for any versions as long as the template is not changed heavily comparing to my version.

Under "<YOURBUGZILLADIR>/template/en/default/bug", get a file called "knob.html.tmpl", open it.

Find "RESOLVED" in the file. There is only one occurrence in my file. Add a few lines as following (line 149 to line 165 are NEW!). There is a link in the text so it will be shown as a link by your browser, please change it back. Actually this block of code can be copied from somewhere of the same file.

   141        [% IF bug.bug_status == "RESOLVED" %]
   142          [% PROCESS initial_action %]
   143          <input type="radio" id="knob-verify" name="knob" value="verify">
   144          <label for="knob-verify">
   145            Mark [% terms.bug %] as [% status_descs.VERIFIED FILTER html %]
   146          </label>
   147          <br>
   148          [% knum = knum + 1 %]
   149          <input type="radio" id="knob-reassign" name="knob" value="reassign">
   150          <label for="knob-reassign">
   151            Reassign
   152            [% terms.bug %] to
   153          </label>
   154          [% safe_assigned_to = FILTER js; bug.assigned_to.login; END %]
   155          [% INCLUDE global/userselect.html.tmpl
   156               id => "assigned_to"
   157               name => "assigned_to"
   158               value => bug.assigned_to.login
   159               size => 32
   160               onchange => "if ((this.value != '$safe_assigned_to') && (this.value != '')) {
   161                                 document.changeform.knob[$knum].checked=true;
   162                            }"
   163          %]
   164          <br>
   165          [% knum = knum + 1 %]



Following is the diff result so you can get the information more clearly.

-bash-3.00# diff knob.html.tmpl knob.html.tmpl.bak
149,165d148
<         <input type="radio" id="knob-reassign" name="knob" value="reassign">
<         <label for="knob-reassign">
<           Reassign
<           [% terms.bug %] to
<         </label>
<         [% safe_assigned_to = FILTER js; bug.assigned_to.login; END %]
<         [% INCLUDE global/userselect.html.tmpl
<              id => "assigned_to"
<              name => "assigned_to"
<              value => bug.assigned_to.login
<              size => 32
<              onchange => "if ((this.value != '$safe_assigned_to') && (this.value != '')) {
<                                document.changeform.knob[$knum].checked=true;
<                           }"
<         %]
<         <br>
<         [% knum = knum + 1 %]


Hope it helps.