automatic priority increase for over due date issue
Moderators: Developer, Contributor
automatic priority increase for over due date issue
Hello everyone, is it possible to make an automatic priority increase if the current date is older than the due date?
2.25.7
Scheme version 211
PHP version 7.4.33
mysqli Database Driver
Database version, description 10.10.2, 10.10.2-MariaDB
2.25.7
Scheme version 211
PHP version 7.4.33
mysqli Database Driver
Database version, description 10.10.2, 10.10.2-MariaDB
Re: automatic priority increase for over due date issue
Yes you can using a plugin that takes care of this required behaviour
Re: automatic priority increase for over due date issue
unfortunately, I haven't been able to figure out how to write a plugin yet, could you help with writing it? a concrete example of the implementation of such a task would speed up my learning in writing plugins. Thanks for the help
Re: automatic priority increase for over due date issue
I can help with that but wonder if you cannot use something else better. Priorities are limited and every day that will be increased if nothing happens.
Why not use the Reminder plugin to send an email to the person who needs to take action?
Why not use the Reminder plugin to send an email to the person who needs to take action?
Re: automatic priority increase for over due date issue
I have set up filters for preparing reports to the manager on outstanding tasks. The manager generates the report himself by loading the filter. Priority is selected as the criterion for selecting tasks. Now I'm changing it manually at the end of the month, I would like to take off this job

P.S. sorry, I mistakenly pressed the wrong button and sent a complaint to your post

Please do not take it into account the administrator
Re: automatic priority increase for over due date issue
In your case it might be better to set up an automatic job (Cron under Linux, Task under Windows) which runs once a month which takes care of you manual monthly action.
This would be a small script which increases priority if the Duedate is before current date for thickets with a specific status (let's say below Resolved).
Would that fit your requirements?
This would be a small script which increases priority if the Duedate is before current date for thickets with a specific status (let's say below Resolved).
Would that fit your requirements?
Re: automatic priority increase for over due date issue
unfortunately not. There are a lot of tasks, the speed of execution is different, the data in the reports change daily. The manager wants to generate a report at any time. Mantis runs on a virtual server. Running cron jobs greatly increases the load on the server, and I would have to involve the server administrator, which I really would not like. Plugin would be an ideal solution. And the implementation of a specific plugin would be of great help to me in my development, and not only to me, I think.cas wrote: ↑13 Sep 2023, 14:57 In your case it might be better to set up an automatic job (Cron under Linux, Task under Windows) which runs once a month which takes care of you manual monthly action.
This would be a small script which increases priority if the Duedate is before current date for thickets with a specific status (let's say below Resolved).
Would that fit your requirements?
Thanks for the help
Re: automatic priority increase for over due date issue
What the plugin could offer at best is an additional option in the admin section to run the script, would that fit better?
So then the following questions need to be answered:
- Run it for all projects or only for current active project?
- For issues with which status?
So then the following questions need to be answered:
- Run it for all projects or only for current active project?
- For issues with which status?
Re: automatic priority increase for over due date issue
it is better if the plugin would work automatically, without manual launch by the administrator.cas wrote: ↑15 Sep 2023, 07:48 What the plugin could offer at best is an additional option in the admin section to run the script, would that fit better?
So then the following questions need to be answered:
- Run it for all projects or only for current active project?
- For issues with which status?
Yes, the plugin should work in any project.
Status normal.
if something needs to be fixed with the status, I think I can figure it out on my own using your specific example of the plugin implementation.
Ths for help.

Re: automatic priority increase for over due date issue
For me there are 2 options, either you schedule a job or you make it a manual activity ( 1 action for all tickets). You indicated that a cron job would be problematic (which it is not) so automatic is not an option.
Plugins require a trigger which is based on execution of the software not by schedule so take your pick
Plugins require a trigger which is based on execution of the software not by schedule so take your pick

Re: automatic priority increase for over due date issue
make pls it a manual activitycas wrote: ↑18 Sep 2023, 07:37 For me there are 2 options, either you schedule a job or you make it a manual activity ( 1 action for all tickets). You indicated that a cron job would be problematic (which it is not) so automatic is not an option.
Plugins require a trigger which is based on execution of the software not by schedule so take your pick![]()
THS!
Re: automatic priority increase for over due date issue
install attached, basic, plugin and you will find an option called "Review priorities" within the management menu 

- Attachments
-
- ToLate.zip
- (2.45 KiB) Downloaded 194 times
Re: automatic priority increase for over due date issue
COOL!

but the script also changes the priority of those tasks that do not have DueDate (empty) :-(You can fix it so that the priority changes only for those tasks that do not have an empty DueDate value. the deadline for which has been passed
THS!
Re: automatic priority increase for over due date issue
That is added in attached version for you. Now yoy can learn to build your own plugins 

- Attachments
-
- ToLate101.zip
- (2.46 KiB) Downloaded 190 times