English 中文(简体)
Bugzilla - workflow customization
原标题:

I want to change the Bugzilla workflow so that a user won t be able to close a bug unless the bug has gone through some phases (e.g. ASSIGNED, IN_PROGRESS, etc).

How do I change Bugzilla in order to create my own work flow?

问题回答

Have you tried changing the workflow from within bugzilla itself?

(Edit: updated URL for 5.0)

If your primary concern is permissions, you ll want to check out check_can_change_field in Bugzilla/Bug.pm.

There s only so much customization you can do in editworkflow.cgi, because RESOLVED much be reachable from any other status (because when it is marked as a duplicate, for instance, it becomes RESOLVED). The workflow itself doesn t consider the history of the bug.

If you really wanted to enforce this sort of business logic, you should start diving into process_bug.cgi. If someone want to set the status to FOO but it needs to have been in status BAR before, you could check the bug s history in bugs_activity.

But that s a lot of work, and you re likely to have special cases, more rules, more special cases, etc.

I think you would be better off identifying bugs that didn t go through the proper workflow after the fact. When you identify such a bug, you would reopen them or put them into whatever status.

You would do this by examining bugs_activity to see what values of bug_status have been added/removed.

You need to do it in two steps:

  1. Go to editvalues.cgi?field=bug_status and add/delete/rename the names of the different status.
  2. Go to the editworkflow.cgi and customize the matrix.
  1. Create first a status. Type "closed" to Status type (Administration/Field values/Status (This value will not be used (for example the name "Do not use"))
  2. Go to Admininistration/Parameters/Bug change policies. Choose your new status
  3. Go to Edit workflow (Admininistration/Bug Status Workflow). You can now uncheck RESOLVED

It is a way of doing





相关问题
Configure flymake to use specific directory for temp files?

I ve been looking through the documentation and tried customizing and a variety of things, but no matter what I do it seems like Flymake just always places its temporary files into whatever directory ...

Customizing output of BLAST?

I know this is a very specific question relating to BLAST and Bioinformatics but here goes: I am attempting to use standalone BLAST (I already have downloaded it and tested it running on the command ...

Extendable .Net Document management for under $30K

i am looking to answer one of those problems that sometimes get give to us devs by sales staff trying to get a sale in under budget. We have a client that requires the following: Document management ...

热门标签