Forum

New Resource creati...
 
Notifications
Retirer tout

New Resource creation from API and auto-assignation to administrative tasks

5 Posts
2 Utilisateurs
0 Reactions
1,267 Vu
(@milien56)
Posts: 26
Eminent Member
Début du sujet
 
[#9121]

Hello,
I 'm using the API to interact with Projeqtor from an ERP.

My need:
1/ Create a new resource/user from API ==> OK
2/ Be able to add imputation on administrative Project tasks for this resource. To do so, API needs the "idAssignement" for this task/resource
I then ask API to get this idAssignment but it seems it's not done automatically after resource creation.
I discovered that this assignement is done when accessing the imputations table from GUI for this resource.
I also guess there is a batch running (nightly) to make this assignation (to be confirmed)

My question: Is there a way to force the assignation of a new ressource to administrative tasks from API just after resource creation?

Thanks.
Br
 


 
Posté : 26/10/2023 11:00 am
(@babynus)
Posts: 14952
Membre Admin
 

Assignment is a relation between a plannable item (activity, meeting) and a resource.
So you need to have a project...
... that contains an activity ...
... and assign the resource to the activity.
Then you get an assignment with an id.


 
Posté : 26/10/2023 11:54 am
(@milien56)
Posts: 26
Eminent Member
Début du sujet
 

Thank you, yes I get this for classical project.
But project with type "Administrative" is specific in the way i do not have to assign a ressource to each activity for this kind of project as this is done automatically by projeqtor.
The fact is i want it to be done (automatically) straight after ressource creation from API, which doen't seem to be the case.
One solution would be to make the assignement manually from API, for each activities of Administrative project but this sounds heavy.
Br


 
Posté : 26/10/2023 1:41 pm
(@babynus)
Posts: 14952
Membre Admin
 

But project with type "Administrative" is specific in the way i do not have to assign a ressource to each activity for this kind of project as this is done automatically by projeqtor.

You don't have to do this if you enter work through the Timesheet screen, as this feature will automatically create the needed assignment.
But if you wish to add work through the API, you have to manually generate the assignment.


 
Posté : 26/10/2023 7:55 pm
(@milien56)
Posts: 26
Eminent Member
Début du sujet
 

Ok thank you.

Br


 
Posté : 26/10/2023 8:25 pm
Share:
Retour en haut