Forum

Welcome to ProjeQtOr new Forum. We migrated old forum to the new website.
You will find all your posts here, with your usual account.
Just one point : you’ll have to reinitialize your password. Use “Lost password” feature.

Create a hook syste...
 
Notifications
Clear all

Create a hook system

2 Posts
2 Users
0 Reactions
1,895 Views
Fanch
(@fsouliers)
Posts: 86
Active Member
Topic starter
 
[#7004]

Hello again,

From a long time now I have an idea that could be an interresting plugin (I guess it could be a plugin) : a hooks system.
It would be just a mix of the existing mail sending system, cron triggers and the well-known svn/git/whatever hook systems.

Here are the first use case to describe my idea :
- As a developer I can write a program / script that does whatever I want based on some information I can get from Projeqtor (well basically this use case is totally independant of Projeqtor).
- As an administrator user I can upload binaries or script file in a given directory (eg projeqtor/files/hooks by default) and make them executables.
- As an authorized user I can define a hook as a script/binary launched by Projeqtor under some condition, like it is done for mail sending and why not based on some cron-like definitions
- As an authorized user I can add several parameters in the hook definition. Those parameters will be passed as arguments to the hook script/binary. Arguments could be a user API key, the current session, the whole condition context that triggered the hook, the content of a field of the selected entity ...

I think that such a hook system could be very interesting for many companies as it allows to trigger many actions from projeqtor whithout adding any complexity to it. Just in my case here are some functionnal use case :
- When a project entity reaches a certain state, create entries in several tools such as directories in our cloud, dedicated git / Redmine / Jenkins projects,
- When a bill entity reaches a certain state, use the ERP API to trigger corresponding billing from it.
- Every week, control that real work has been validated and if so use the ERP API to consolidate the amount of work for each project code
- When a delivery reaches a certain state, really delivers it on the cloud / sharepoint / whatever of the customer
- When a ressource is added to some type of project, register him/her to the mandatory quality training
- ... I still have many many other examples ...

My 2 cents,


 
Posted : 29 Oct 2020 13H06
(@babynus)
Posts: 14952
Member Admin
 

Hi,

Request recorded as Ticket #5051


 
Posted : 29 Oct 2020 14H14
Share:

Scroll to Top