Skip to content

Feature Request: Task-level time-phased cost data access #876

@CaideSpries

Description

@CaideSpries

Summary

I'm building a dashboard that reads MS Project (.mpp) files using MPXJ. I need to access task-level time-phased cost data (monthly cost breakdown), similar to VBA's Task.TimeScaleData() method.

Currently, MPXJ only provides time-phased data at the ResourceAssignment level:

  • ResourceAssignment.getTimephasedCost()
  • ResourceAssignment.getTimephasedActualCost()
  • ResourceAssignment.getTimephasedBaselineCost(int)

The Problem

For budget tasks (tasks without resource assignments), there is no way to get time-phased cost data in MPXJ, even though:

  1. MS Project stores this data at the task level
  2. VBA can read it via Task.TimeScaleData(StartDate, EndDate, pjTaskTimescaledCost, pjTimescaleMonths)

This causes my dashboard to show ~40% of the values compared to a VBA-based Excel export.

Request

Would it be possible to add task-level time-phased cost methods to the Task class?

For example:

  • Task.getTimephasedCost()
  • Task.getTimephasedActualCost()
  • Task.getTimephasedBaselineCost(int baselineNumber)

Questions

  1. Does MPXJ read task-level time-phased data from MPP files but not expose it?
  2. If not, is this data stored in a known location in the MPP binary format?
  3. Would you be open to a contribution that adds this functionality?

Environment

  • MPXJ Version: 15.0.0
  • File Format: MPP (MS Project 2019)
  • Access Method: Python via JPype

References

Thank you for maintaining this excellent library!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions