Extension:Semantic Tasks

From MediaWiki.org
(Redirected from Extension:SemanticTasks)
Jump to navigation Jump to search
MediaWiki extensions manual
OOjs UI icon advanced.svg
Semantic Tasks
Release status: unmaintained
Implementation Notify
Description Provides email task notifications and reminders
Author(s)
Latest version 1.7.0 (August 2017)
MediaWiki 1.23+
PHP 5.3+
Database changes No
License GNU General Public License 2.0 or later
Download
README
  • $wgSemanticTasksNotifyIfUnassigned

Compatibility

  • Semantic MediaWiki 1.8.x to 2.5.x
Translate the Semantic Tasks extension if it is available at translatewiki.net
Check usage and version matrix.

The Semantic Tasks extension 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[edit]

  • 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.

Installation[edit]

Users of MW 1.23.x to MW 1.27.x should use the snapshot for master if the snapshot for the MW 1.27 version is not yet available. If the snapshot for MW 1.27 is available use this.
Users of MW 1.31.x should use the current master in the GitHub repository. The extension is currently being moved to GitHub and upgraded to work with MW 1.31.x.
  • Download and place the file(s) in a directory called SemanticTasks in your extensions/ folder.
  • Add the following code at the bottom of your LocalSettings.php:
    require_once "$IP/extensions/SemanticTasks/SemanticTasks.php";
    
    Finally run a cron job once a day to execute the reminder script. Edit your crontab file:
$ crontab -e

And add the following line to execute the script every day at 12:

0 12 * * * php extensions/SemanticTasks/ST_CheckForReminders.php
  • Yes Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

Configuration and Usage[edit]

Properties[edit]

  • 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:<username>
  • Reminder at and Target date properties must be of the type Date

Cron job[edit]

  • 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
  1. last modification date
  2. Reminder at value
  3. 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.

Parameters[edit]

$wgSemanticTasksNotifyIfUnassigned
Set to "true" to notify users when they are unassigned from a task (default = "false")

See also[edit]