Fullscreen
[Show/Hide Right Column]

Batch actions

Since Tiki6, and extended in Tiki9.

This feature allows you to do some actions in batch. You still need to set up a cron job or other tools to activate the features described here.



Email sending from Daily reports

Using tiki-user_send_reports.php

See Daily reports

Email sending from Newslettters

Using tiki-bach_send_newsletter.php

See Newsletters and
http://doc.tiki.org/Newsletter+User#Sending_newsletters_with_a_cron_batch_job

Trackers

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.

The task that must be run is
cron command
cd /path_to_tiki_root; php tiki-batch_todo.php


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:
Image

wiki page changeStatus
In about {$todo_after|duration}, the item {$todo_itemId} ("{$todo_desc}") will change
from the status {$todo_fromstatus} to {$todo_tostatus}

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.

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


Updating advanced rating

Using a custom php script as described in
http://doc.tiki.org/Advanced+Rating#Appendix

See Advanced Rating

Related
Some links to set up a cron:

See also Cron

Aliases
batch job | batch process | Cron job | Cron tab | Cron | Scheduled Task


Contributors to this page: xavi64542 points  , Marc Laporte8171 points  and sylvie7160 points  .
Page last modified on Thursday 02 February, 2012 14:11:21 UTC by xavi64542 points .
The content on this page is licensed under the terms of the Creative Commons Attribution-ShareAlike License.

Site Language

Reference Guide

Keywords

These keywords serve as "hubs" for navigation within the Tiki documentation. They correspond to development keywords (bug reports and feature requests):



Tiki Newsletter

Delivered fresh to your email inbox!
Newsletter subscribe icon
Don't miss major announcements and other news!
Contribute to Tiki