History: Tracker Events
Source of version: 2 (current)
Copy to clipboard
! {{page}} Events on Tracker items: Changing status & email notification in advanced It is possible to specify automatic item status change for a tracker after a certain period of inactivity. Moreover, some emails can be sent to warn the user about that change at some predefined time before the status item change is planned to happen. You can define it through the "__Events__" option for tracker; the icon is shown in the list of Trackers (__tiki-list_trackers.php__) > column "__Actions__": {img src=img/icons/clock.png} {img src="display1232" link="display1232" width="400" rel="box[g]" imalign="center" desc="Click to expand" align="center" styleimage="border"} The interface for the status change based on the batch job looks something like (depending on your Tiki version): ::{img fileId="650" thumb="y" rel="box[g]" width="400"}:: The status change is done before considering to send notification. The time the event is approximate as it depends of the frequency of the cron The task that must be run is {CODE(caption="cron command")} cd /path_to_tiki_root; php tiki-batch_todo.php {CODE} In the modification/creation panel of a tracker, you can specify a change of status from one status (optional) to another after a certain time from the creation or last modification of an item. You can also specify if you wish to send a notification to the item creator. The subject of the message is a string. The body of the message is a smarty resource, either a wiki page or a template, which can use a few variables inside: * {$todo_itemId} * {$todo_tostatus} * {$todo_fromstatus} * {$todo_after} * {$todo_desc} , which is fed with the first "isMain" type of field from that tracker, which could be the "title" or "name" assigned to that tracker item at item creation, etc. Example ( in ((Tiki6)) ): ::{img fileId=294 stylebox=border}:: {CODE(caption="wiki page changeStatus")} In about {$todo_after|duration}, the item {$todo_itemId} ("{$todo_desc}") will change from the status {$todo_fromstatus} to {$todo_tostatus} {CODE} In this example open items older than one day will have their status changed to pending. The item creator will receive a notification 23 hours before the change. Since ((Tiki9)), the events on tracker items can be run by means of ((Token Access)). Related: * ((Trackers)) * ((Batch)) Alias names for this page: (alias(TrackerEvents)) | (alias(TrackerEvent)) | (alias(Tracker Event))