Project

General

Profile

Actions

Feature #23119

open

Hook for deleted issues

Added by César DJ Caësar 9114 over 8 years ago. Updated over 7 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Hook requests
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:

Description

Hello,
I saw the list of hooks and I'd like to know if it was possible to have a new hook letting us doing things when an issue is deleted.
Why not:

 :controller_issues_before_destroy
 :controller_issues_after_destroy

Actions #1

Updated by Shreyas Moolya over 7 years ago

These Hooks can then be used to maintain a recycle bin in Redmine.

Actions #2

Updated by Holger Just over 7 years ago

You can already use the basic ActiveRecord callbacks on the Issue model, which include before_destroy and after_destroy callbacks. Please check the Documentation for details on how to use them. You can register your own model callbacks by adding a simple declarative model patch in your plugin.

If you still do need those Redmine hooks, please describe in more detail how they can be useful to solve the problem in a way that the standard ActiveRecord callbacks can not.

Actions

Also available in: Atom PDF