automatic priority increase for over due date issue

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
rondezo
Posts: 84
Joined: 09 Feb 2021, 09:18

automatic priority increase for over due date issue

Post by rondezo »

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
cas
Posts: 1462
Joined: 11 Mar 2006, 16:08
Contact:

Re: automatic priority increase for over due date issue

Post by cas »

Yes you can using a plugin that takes care of this required behaviour
rondezo
Posts: 84
Joined: 09 Feb 2021, 09:18

Re: automatic priority increase for over due date issue

Post by rondezo »

cas wrote: 11 Sep 2023, 09:33 Yes you can using a plugin that takes care of this required behaviour
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
cas
Posts: 1462
Joined: 11 Mar 2006, 16:08
Contact:

Re: automatic priority increase for over due date issue

Post by cas »

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?
rondezo
Posts: 84
Joined: 09 Feb 2021, 09:18

Re: automatic priority increase for over due date issue

Post by rondezo »

cas wrote: 11 Sep 2023, 11:37 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?
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 :-). If we were to implement such a solution that when the DueDate is passed the priority becomes higher it would be very convenient. I could also use a concrete example to figure out how to write plugins for future tasks. I am very grateful for the help.

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
cas
Posts: 1462
Joined: 11 Mar 2006, 16:08
Contact:

Re: automatic priority increase for over due date issue

Post by cas »

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?
rondezo
Posts: 84
Joined: 09 Feb 2021, 09:18

Re: automatic priority increase for over due date issue

Post by rondezo »

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?
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.
Thanks for the help
cas
Posts: 1462
Joined: 11 Mar 2006, 16:08
Contact:

Re: automatic priority increase for over due date issue

Post by cas »

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?
rondezo
Posts: 84
Joined: 09 Feb 2021, 09:18

Re: automatic priority increase for over due date issue

Post by rondezo »

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?
it is better if the plugin would work automatically, without manual launch by the administrator.
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. :!:
cas
Posts: 1462
Joined: 11 Mar 2006, 16:08
Contact:

Re: automatic priority increase for over due date issue

Post by cas »

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 :mrgreen:
rondezo
Posts: 84
Joined: 09 Feb 2021, 09:18

Re: automatic priority increase for over due date issue

Post by rondezo »

cas 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 :mrgreen:
make pls it a manual activity
THS!
cas
Posts: 1462
Joined: 11 Mar 2006, 16:08
Contact:

Re: automatic priority increase for over due date issue

Post by cas »

install attached, basic, plugin and you will find an option called "Review priorities" within the management menu :mrgreen:
Attachments
ToLate.zip
(2.45 KiB) Downloaded 3 times
rondezo
Posts: 84
Joined: 09 Feb 2021, 09:18

Re: automatic priority increase for over due date issue

Post by rondezo »

cas wrote: 19 Sep 2023, 13:37 install attached, basic, plugin and you will find an option called "Review priorities" within the management menu :mrgreen:
COOL! :idea:
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!
cas
Posts: 1462
Joined: 11 Mar 2006, 16:08
Contact:

Re: automatic priority increase for over due date issue

Post by cas »

That is added in attached version for you. Now yoy can learn to build your own plugins :mrgreen:
Attachments
ToLate101.zip
(2.46 KiB) Downloaded 2 times
rondezo
Posts: 84
Joined: 09 Feb 2021, 09:18

RESOLVED automatic priority increase for over due date issue

Post by rondezo »

cas wrote: 20 Sep 2023, 08:42 That is added in attached version for you. Now yoy can learn to build your own plugins :mrgreen:
:!: That's great! It remains only to learn :-) Thank you so much :!:
Post Reply