Bug and Bugnote Events
Bug View
EVENT_VIEW_BUG_DETAILS (Execute)
This event allows a plugin to either process information or display some
data in the bug view page. It is triggered after the row containing the
target version and product build fields, and before the bug summary is
displayed.
Any output here should be defining appropriate rows and columns for the
surrounding <table> elements.
Parameters
<Integer>: Bug ID
Bug Actions
EVENT_REPORT_BUG_FORM (Execute)
This event allows plugins to do processing or display form elements on
the Report Issue page. It is triggered immediately before the summary
text field.
Any output here should be defining appropriate rows and columns for the
surrounding <table> elements.
Parameters
<Integer>: Project ID
EVENT_REPORT_BUG_FORM_TOP (Execute)
This event allows plugins to do processing or display form elements at
the top of the Report Issue page. It is triggered before any of the
visible form elements have been created.
Any output here should be defining appropriate rows and columns for the
surrounding <table> elements.
Parameters
<Integer>: Project ID
EVENT_REPORT_BUG_DATA (Chain)
This event allows plugins to perform pre-processing of the new bug data
structure after being reported from the user, but before the data is
saved to the database. At this point, the issue ID is not yet known, as
the data has not yet been persisted.
Parameters
<Complex>: Bug data structure (see core/bug_api.php)
Return Value
<Complex>: Bug data structure
EVENT_REPORT_BUG (Execute)
This event allows plugins to perform post-processing of the bug data
structure after being reported from the user and being saved to the
database. At this point, the issue ID is actually known, and is passed
as a second parameter.
Parameters
<Complex>: Bug data structure (see core/bug_api.php)
<Integer>: Bug ID
EVENT_UPDATE_BUG_FORM (Execute)
This event allows plugins to do processing or display form elements on
the Update Issue page. It is triggered immediately before the summary
text field.
Parameters
<Integer>: Bug ID
EVENT_UPDATE_BUG_FORM_TOP (Execute)
This event allows plugins to do processing or display form elements on
the Update Issue page. It is triggered immediately before before any
of the visible form elements have been created.
Parameters
<Integer>: Bug ID
EVENT_UPDATE_BUG (Chain)
This event allows plugins to perform both pre- and post-processing of
the updated bug data structure after being modified by the user, but
before being saved to the database.
Parameters
<Complex>: Bug data structure (see core/bug_api.php)
<Integer>: Bug ID
Return Value
<Complex>: Bug data structure
EVENT_BUG_ACTION (Execute)
This event allows plugins to perform post-processing of group actions
performed from the View Issues page. The event will get called for
each bug ID that was part of the group action event.
Parameters
<String>: Action title (see bug_actiongroup.php)
<Integer>: Bug ID
EVENT_BUG_DELETED (Execute)
This event allows plugins to perform pre-processing of bug deletion
actions. The actual deletion will occur after execution of the event,
for compatibility reasons.
Parameters
<Integer>: Bug ID
Bugnote View
EVENT_VIEW_BUGNOTES_START (Execute)
This event allows a plugin to either process information or display some
data in the bug notes section, before any bug notes are displayed. It is
triggered after the bug notes section title.
Any output here should be defining appropriate rows and columns for the
surrounding <table> elements.
Parameters
<Integer>: Bug ID
<Complex>: A list of all bugnotes to be displayed to the user
EVENT_VIEW_BUGNOTE (Execute)
This event allows a plugin to either process information or display some
data in the bug notes section, interleaved with the individual bug notes.
It gets triggered after every bug note is displayed.
Any output here should be defining appropriate rows and columns for the
surrounding <table> elements.
Parameters
<Integer>: Bug ID
<Integer>: Bugnote ID
<Boolean>: Private bugnote (false if public)
EVENT_VIEW_BUGNOTES_END (Execute)
This event allows a plugin to either process information or display some
data in the bug notes section, after all bugnotes have been displayed.
Any output here should be defining appropriate rows and columns for the
surrounding <table> elements.
Parameters
<Integer>: Bug ID
Bugnote Actions
EVENT_BUGNOTE_ADD_FORM (Execute)
This event allows plugins to do processing or display form elements in
the bugnote adding form. It is triggered immediately after the bugnote
text field.
Any output here should be defining appropriate rows and columns for the
surrounding <table> elements.
Parameters
<Integer>: Bug ID
EVENT_BUGNOTE_ADD (Execute)
This event allows plugins to do post-processing of bugnotes added to an
issue.
Parameters
<Integer>: Bug ID
<Integer>: Bugnote ID
EVENT_BUGNOTE_EDIT_FORM (Execute)
This event allows plugins to do processing or display form elements in
the bugnote editing form. It is triggered immediately after the bugnote
text field.
Any output here should be defining appropriate rows and columns for the
surrounding <table> elements.
Parameters
<Integer>: Bug ID
<Integer>: Bugnote ID
EVENT_BUGNOTE_EDIT (Execute)
This event allows plugins to do post-processing of bugnote edits.
Parameters
<Integer>: Bug ID
<Integer>: Bugnote ID
EVENT_BUGNOTE_DELETED (Execute)
This event allows plugins to do post-processing of bugnote deletions.
Parameters
<Integer>: Bug ID
<Integer>: Bugnote ID
EVENT_TAG_ATTACHED (Execute)
This event allows plugins to do post-processing of attached tags.
Parameters
<Integer>: Bug ID
<Array of Integers>: Tag IDs
EVENT_TAG_DETACHED (Execute)
This event allows plugins to do post-processing of detached tags.
Parameters
<Integer>: Bug ID
<Array of Integers>: Tag IDs