Cost Plan not getting created when Resource Assignment is created
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-30-2024 05:05 AM
Hi All,
When we are creating Resource Assignments under the Project Tasks, it is creating Resource plan but not the cost plan.
The business rule: 'Create Cost Plan' 's condition (new RMCostPlanHelper(current)).shouldCreateCostPlan() is not satisfying hence not creating but could you please explain this behavior?
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-30-2024 06:04 AM - edited 09-30-2024 06:11 AM
That script call is actually very simple.
To start, it checks that the task is using "Attribute-based" methods for its resource plan, by checking that the 'resource_type' value on the resource plan is 'attribute'.
If that returns true, it checks the type of the record the plan is running against, and returns true if the record is one of a project (pm_project), a project task (pm_project_task), or a demand (dmn_demand).
You say you're creating the record against a project task. Is there any chance you're using a teamspace, or that your project task is on a custom table? A teamspace shouldn't be an issue (although it would be an important thing to check), but a custom table would definitely be.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-30-2024 08:32 AM
Hi @phil_bool_unifi , Thank you for responding.
Yes I am using the project workspace and clicking on the project task and then 'add resource'. This is now allowing me to add resources as below:
Once this is added it creates a Resource Plan but Cost plan is not getting created. That's is the issue.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2025 07:40 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-28-2025 10:33 PM
it will create when click on generate labour cost related link under project