Services of “Issue Reminders” app can be accessed by Script Runner and other plugins. You can browse Issue Reminders JavaDoc for available services. You can use this feature to create automatic reminders when status of an issue is changed.
Creating a New Reminder
Following script adds a new Reminder for assignee of the issue. Reminder is scheduled after 3 days when the issue is transitioned.
Following script deletes reminders of the issue, if the issue is resolved. You can set this script as a post function for Done/Resolve transition and remove reminders of the issue. So that reminders do not fire for resolved issues. Note that since this script checks issue resolution you have to place this post function below the “Update Issue Fields” post function which sets resolution of the issue.