Question

Is there a possibility to assign a number of milesstones to their respective components?

The idea is a following:

We've got components [A,B,C].

Component A has milestones [1,2,3]
Component B has milestones [4,5,6]
Component C has milestones [7,8,9]

On a "New ticket" page you can choose any milestone for any component. The task is to have an opportunity to strictly assign milestones to components and view statistic based on this structure.

Any ideas?

Was it helpful?

Solution

To answer your question the task needs to be clarified and detailed a bit more.

Being able to assign only appropriate milestones, you'll have to enforce input order:

  1. component
  2. milestone (from filtered list)

So you'll need to conditionally hide the milestone input field, until a component has been selected. After selecting the component you'll need to fetch an updated milestone list. All that has to be done repeatedly, if you change the component before submitting the new ticket. And to not leave the /newticket page you'll even need to do page updates by back-ground requests (ajax style) that requires JavaScript.

You did not tell anything special about statistics, so I assume it could be done by a custom report the common way.

I know of a Trac plugin that is getting close: TracTicketChainedFieldsPlugin, but might still need some work to be done.

OTHER TIPS

This sounds like a job for the Subcomponents Plugin. This will allow you to organize your components into a tiered structure, which makes it easy to do the sort of strict grouping that you are looking for. This doesn't have anything to do with milestones, though (it does everything using only components). If you strictly need to use a combination of milestones and components for some reason, then this might not work for you.

I think you want to use 'component' in the meaning of project, and you want to assign milestones for your certain projects.

You should rather install SimpleMultiProjectPlugin which is also able to map components, milestones and versions to certain projects.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top