Extension:Semantic Tasks

Semantic Tasks is an extension to MediaWiki that works in conjunction with another extension, Semantic MediaWiki, to provide email task notifications and reminders.

Semantic Tasks was originally developed for the Creative Commons internal task- and project-tracking system ccTeamspace.

Description

 * After a task creation, users assigned to the task and following the task receive a "New Task" mail containing the task text.
 * After a task is modified, users assigned to the task and following the task receive a "Task Updated" mail containing a diff of the modification.
 * The editor of the task doesn't receive a mail after his edit.
 * If the edit is a minor edit, no mail is sent.

Properties

 * Notification emails are sent when a page is saved that has Assigned to::* and/or Carbon copy::* and Reminder at::* and/or Target date::* properties.
 * Assigned to and Carbon copy properties must be of the type Page (default for non-existing properties) and their values must be of the form: User:
 * Reminder at and Target date properties must be of the type Date

Cron job

 * Reminder emails are sent by a cron job. An administrator must schedule this job to run once a day.
 * The cron job looks at the
 * last modification date
 * Reminder at value
 * Target date value
 * of all pages that have Assigned to or Carbon copy properties. When the current date is equal to one of these three values, it sends a corresponding reminder.


 * Emails are sent through the MediaWiki email system, so only users who have set email addresses in their preferences, and have confirmed their email addresses will receive emails.

Installation

 * This extension only works with Semantic MediaWiki version 1.2 or later.


 * Extract the archive to obtain the directory "SemanticTasks" that contains all relevant files. Copy the directory "SemanticTasks" to "[wikipath]/extensions/".

require_once( "$IP/extensions/SemanticTasks/SemanticTasks.php" );
 * Insert the following line into the file LocalSettings.php:

edit your crontab file: $ crontab -e add the following line to execute the script every day at 12: 0 12 * * * php extensions/SemanticTasks/ST_CheckForReminders.php
 * run a cron job once a day to execute the reminder script :

1.5

 * Fix reminder emails
 * Change email to send property values instead of wiki page contents
 * Change email to send property differences instead of a wiki page diff
 * Add feature to allow admins to make email templates

1.4

 * Fix bug that causes notifications to fail in non-main namespaces