p6_lookahead
Generate a paginated Primavera P6 look-ahead from the data date, showing activities starting, finishing, spanning, or in progress in a date window with category counts.
Instructions
Look-ahead of a project, one page: {total, offset, returned, next_offset, rows, window, data_date, counts, schedule_state, note}. The window starts at the data date (or from_date; a date alone starts at 00:00), lasts days= (default 14) or weeks= calendar days and is half-open [from, to). Listed: not started activities starting in it, open ones finishing in it, not started ones spanning it (start before, finish after), every in-progress activity (include_in_progress=False keeps those finishing in the window) and, with include_completed=True, completed ones whose actual dates overlap it. Open activities use their remaining dates (early when empty) of the last F9. LOE and WBS summary activities are left out. Each row has window: the categories it meets (in_progress, starting, finishing, spanning, completed); counts gives them over all pages. wbs_name_contains, code_type / code_value / include_child_codes and fields= as in p6_query_activities. Order: start, finish, Activity ID.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | ||
| limit | No | Rows per page (max 200). | |
| weeks | No | ||
| fields | No | ||
| offset | No | Rows to skip: pass next_offset from the previous page. | |
| project | Yes | Project ID as shown in P6 (p6_list_projects). | |
| code_type | No | ||
| from_date | No | ||
| code_value | No | ||
| include_completed | No | ||
| wbs_name_contains | No | ||
| include_child_codes | No | ||
| include_in_progress | No |