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.

New Resource creati...
 
Notifications
Clear all

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

5 Posts
2 Users
0 Reactions
1,297 Views
(@milien56)
Posts: 26
Active Member
Topic starter
 
[#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
 


 
Posted : 26 Oct 2023 11H00
babynus
(@babynus)
Posts: 14966
Main Contributor 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.


 
Posted : 26 Oct 2023 11H54
(@milien56)
Posts: 26
Active Member
Topic starter
 

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


 
Posted : 26 Oct 2023 13H41
babynus
(@babynus)
Posts: 14966
Main Contributor 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.


 
Posted : 26 Oct 2023 19H55
(@milien56)
Posts: 26
Active Member
Topic starter
 

Ok thank you.

Br


 
Posted : 26 Oct 2023 20H25
Share:

Scroll to Top