Closed
Description
To decouple the timeline/milestones from projects/phase/products and to be better at supporting timelines/milestones for other entities than project/phase/product, we need to use reference
and referenceId
in stead of productTemplatedId
in ProductMilestoneTemplate
model.
Purpose of this ticket to:
- Rename the
ProductMilestoneTemplate
model toMilestoneTemplate
- do the required changes in the model and its CRUD operations.
- Create new endpoint
/v4/milestoneTemplates
which lists all the milestone templates for the givenreference
andreferenceId
- Update the
/v4/productTemplates/123/milestones
endpoint to fetch milestone templates using API call to the new endpoint created in 3. - Update the other places in project service itself, where we are looking for milestone templates based on
productTemplateId
e.g. project's create endpoint usesproductTemplateId
to look for all required milestone templates. - Update unit tests
- Update swagger and postman docs
fyi @RishiRajSahu