Skip to content

Enable the Reminder Function of Pleasanter (External Script)

Overview

This explains how to enable the "Reminder" function. Use this procedure to enable the reminder function if the following applies to your environment.
・The version of Pleasanter you are using is 1.3.6 or earlier.
・The environment has "Integrated Windows Authentication" enabled (regardless of version).

Limitations

  1. The procedure for enabling reminders has changed since Pleasanter version 1.3.7.0. If you are using the latest version, please check "Enable The Reminder Function of Pleasanter".
  2. If you leave the settings in this procedure and set it in the procedure "Enable The Reminder Function of Pleasanter", the reminder may be started twice and emails may be sent multiple times.

Operation Procedure

Register the script that runs the reminder to the task scheduler or cron.

How to set up on Windows

  1. Install the script
    Copy Reminder.ps1 to any folder, such as D:\Tools. Edit Reminder.ps1 with Notepad or similar and change the http://localhost/pleasanter/ part to a URL for pleasanter that can be accessed from the client. For example, you can run the reminder even if you set it to http://localhost, but the URL of the record in the sent email will be http://localhost/, so you will not be able to access it from the client even if you click on the record link.
    *If you are building your environment on Azure, you will use Reminder.ps1 when registering a web job in App Service. In that case, enable the commented out process on the first line.

  2. Set up the Task Scheduler
    Register the script in the Task Scheduler. On the task creation screen, make the following settings. After creating the task, right-click the task to run it.

Column Settings Description
Task name Reminder Enter any name.
Run whether the user is logged on or not Enabled Runs even when logged off.
Trigger At startup Starts when the server starts.
Executable program %SystemRoot%\System32 WindowsPowerShell\v1.0 powershell.exe Runs PowerShell.
Add arguments -ExecutionPolicy Bypass -Command ".\Reminder.ps1" Script to be called from PowerShell.
Start D:\Tools Directory where Reminder.ps1 is located.
Time to stop task Disable Continues to run as a resident program.

How to set up on Linux

  1. Open /web/pleasanter/Tools/Reminder.py and change the localhost part to a URL that can be accessed from the client.
urllib.request.Request("http://192.168.11.100/reminderschedules/remind?NoLog=1")
  1. Install Python 3.6, which is required for Reminder to work.
sudo dnf install -y python36
  1. Set up Reminder.py in cron.
crontab -e
@reboot python3 /web/pleasanter/Tools/Reminder.py