Skip to main content

Milestone Manager

This page documents the Milestone Manager — the project-tracking subsystem that monitors the completeness of required documents against defined study milestones in SureDrive. It covers the Angular routes and controller, the milestone and required document data model, and the upload flow for required documents.


Overview

The Milestone Manager is visible in the SureDrive Project Dashboard as a summary widget showing milestone names, calendar durations, and completion status. The full manager is accessed via SureDrive → Milestone Manager in the navigation. It tracks whether all required documents for each milestone phase have been uploaded and placed in the correct folder.

Key owning modules:

  • UI: suredms-web-clientnetwork/study/compliance/document-milestone-manager.js
  • Domain model: suredms-common — milestone and required document entities

Angular Routes

Milestone states are registered in multiple state files depending on the access path:

Files:

StateAccess PathPurpose
app.network.quality.browse.milestonesSureDrive → Quality → MilestonesMilestone list from the quality navigation path
app.network.management.browse.milestonesSureDrive → Management → MilestonesMilestone list from the management navigation path

Controller

File: SC/suredms-web-client/src/main/webapp/app/js/network/study/compliance/document-milestone-manager.js

Controller: StudyMilestoneManagerController

This controller loads and manages the milestone list. Key responsibilities:

Method / FeatureDescription
DocumentMilestonesRepositoryData repository used to fetch and update milestone data from the backend
Milestone list renderingDisplays milestone name, calendar duration, and completion percentage
importRequiredDocumentsInitiates the upload flow for a required document via StudyBrowserService
Milestone editingNavigates to the milestone edit sub-state for name, date, and required document configuration

Milestone Data Model

A milestone represents a phase in the study lifecycle with a defined set of required documents. Key data fields:

FieldDescription
Milestone nameDisplay name for the milestone phase
Calendar durationPlanned number of days for the milestone
Start / end datesDate range for the milestone
Required documentsList of document types that must be present to consider the milestone complete
Completion statusCalculated percentage based on required documents uploaded

Required Documents

Each milestone carries a list of required document definitions. A required document specifies:

FieldDescription
Content type / folderWhich folder in the content model the document must be placed in
Document name (optional)Expected document name or naming pattern
Completion flagSet when a document matching the requirement is found in the specified folder

Milestone Operations

Creating Milestones

New milestones are created from the Manage Milestones view. Required fields: milestone name, start date, planned duration. After creation, required documents are added by editing the milestone definition.

Editing Milestones and Adding Required Documents

Help file: Help/contents/Content_Repo/Editing-Milestones-in-SureDrive-and-Adding-Required-Documents_74022988.html

Admins can add required documents to a milestone by selecting a content type from the content model and optionally specifying a document name. Each required document entry appears in the milestone checklist and is marked complete when a matching document is uploaded to the correct folder.

Uploading a Required Document

Help file: Help/contents/Content_Repo/Uploading-a-Required-Document-to-SureDrive_74055801.html

The importRequiredDocuments function in StudyMilestoneManagerController triggers the standard document upload wizard (DriveUploadFilesController) with the required content type pre-selected based on the milestone requirement. On upload completion, the milestone completion status is recalculated.

Milestone Manager Dashboard Widget

The Project Dashboard embeds a summary of the Milestone Manager, showing each milestone's name, current completion percentage, and calendar status. Clicking a milestone navigates to the full milestone detail view.


Help Reference

TopicFile
Milestone Manager overviewHelp/contents/Content_Repo/Working-with-the-Milestone-Manager-in-SureDrive_74055732.html
Viewing the Milestone ManagerHelp/contents/Content_Repo/Viewing_the_Milestone_Manager_in_SureDrive.html
Viewing and Managing MilestonesHelp/contents/Content_Repo/Viewing-and-Managing-Milestones-in-SureDrive_73859134.html
Editing Milestones / Adding Required DocumentsHelp/contents/Content_Repo/Editing-Milestones-in-SureDrive-and-Adding-Required-Documents_74022988.html
Uploading a Required DocumentHelp/contents/Content_Repo/Uploading-a-Required-Document-to-SureDrive_74055801.html
Using Milestone Manager in the DashboardHelp/contents/Content_Repo/Using-Milestone-Manager-in-the-SureDrive-Dashboard_73924659.html

Key Source Files Reference

FilePurpose
SC/suredms-web-client/src/main/webapp/app/js/state/app-states-quality.jsRoute registration for quality-path milestone states
SC/suredms-web-client/src/main/webapp/app/js/state/app-states-management.jsRoute registration for management-path milestone states
SC/suredms-web-client/src/main/webapp/app/js/network/study/compliance/document-milestone-manager.jsStudyMilestoneManagerController — milestone list, edit, and required document upload