How to Automatically Shorten Tasks Between Dependencies in Microsoft Project
Question details
The user wants to automatically calculate and adjust a middle task's duration based on the dates of two dependent tasks.

- Product
- Microsoft Project
- Device & OS
- not provided
- Scenario
- Scheduling project timelines where a bridging task needs to span exactly the time between a predecessor's finish and a successor's start.
- Observed behavior
- The user needs to set up dynamic date links so the middle task's duration expands or contracts automatically when surrounding schedule changes occur.
Make sure your predecessor and successor tasks are fully defined and scheduled in your Microsoft Project plan before attempting to link their dates.
Create a Hammock Task to Auto-Adjust Task Duration
Use the Paste Link feature to create a hammock task. This links the start and finish dates of a middle task to its predecessor and successor, allowing its duration to dynamically recalculate when the connected dates change.
A hammock task does not have a fixed duration. Instead, its timeline is entirely dependent on the finish date of the task that precedes it and the start date of the task that succeeds it.
Select the cell containing the Finish Date of the predecessor task (the task that dictates when the hammock task starts) and press Ctrl+C to copy it.
Right-click the Start Date cell of your middle task (the hammock task), choose 'Paste Special', and select the 'Paste Link' option.
Select the cell containing the Start Date of the successor task (the task that dictates when the hammock task must finish) and press Ctrl+C to copy it.
Right-click the Finish Date cell of your middle task, choose 'Paste Special', and select 'Paste Link'. The duration of the middle task will now automatically expand or contract as the dependent tasks move.

Manage Your Project Schedules Easily with WPS Office
While Microsoft Project requires a separate costly subscription, you can effectively manage project timelines, create Gantt charts, and track task dependencies using WPS Spreadsheet—a free, highly compatible, and lightweight alternative to Microsoft Office.
- 1. Launch WPS Spreadsheet: Open WPS Office on your device and launch the Spreadsheet application.
- 2. Find a Project Management Template: Navigate to the 'Templates' section from the homepage and search for 'Gantt Chart' or 'Project Management'.
- 3. Track Dependencies Automatically: Download a free template and input your project phases to let built-in spreadsheet formulas calculate task durations automatically.

Frequently Asked Questions
What exactly is a hammock task in Microsoft Project?
A hammock task is a special kind of summary or bridging task whose duration is determined by the finish date of an earlier task and the start date of a later task. As those boundary dates shift in your schedule, the hammock task expands or shrinks automatically.
Why does the 'Paste Link' option fail when I try to create a hammock task?
This error frequently occurs if your project file is stored on an unstable remote server or if the copy operation did not capture the right data type. To resolve this, save the file to your local computer first and make sure you are selecting just the single date cell to copy, not the entire row.
Can I use a hammock task to track ongoing administrative work?
Yes, hammock tasks are ideal for representing overhead, project management, or ongoing support activities that span the time between two specific project phases or milestones without having a predetermined fixed duration.




