Edgewall Software
Modify

Opened 21 years ago

Last modified 3 months ago

#31 new enhancement

Bug dependencies/relations feature

Reported by: daniel Owned by:
Priority: high Milestone: next-major-releases
Component: ticket system Version: devel
Severity: normal Keywords: dependencies block duplicate field links relations
Cc: wkornewald, robert.pollak@…, chris@…, somekool@…, dimitrisp-lists@…, vyt@…, radek@…, mrovner@…, trac@…, trac@…, shishz@…, jorvis@…, mjhweb-trac-tickets@…, trac-spam@…, peter.merel@…, kveretennicov@…, nick+trac@…, ccidral.newsbox@…, mark81@…, gustavo.noronha@…, mark@…, hwinkel@…, bfults@…, trac@…, e@…, me3xxx@…, mikd454@…, lukas@…, dicianno@…, zeph.gillen@…, n00spam-developer@…, thomas@…, pphaneuf@…, louie@…, mikepan@…, alon.barlev@…, przemjaskier@…, nruffel@…, cjunge@…, hoessler@…, trac@…, mian.hasan.khalil@…, n-roeser@…, hongqn@…, leho@…, itamarost@…, kirean@…, hoff.st@…, mikko.rantalainen@…, joao.antunes@…, cv.mail@…, brad-trac@…, david@…, ethan.jucovy@…, net147@…, Mikael Relbe, marcus@…, franz.mayer@…, vladimir.chebotarev@…, jaywir3@…, alex@… Branch:
Release Notes:
API Changes:
Internal Changes:

Description

A simple list of related bugs without logical/implicit constraints might be useful. It'd be nice to be able to relate bugs and issues in a useful manner.

It would also thus allow for reports showing "a bug and all related bugs" in some fashion, which could be neat.

This would also require checking for circular dependencies/relations.

Attachments (4)

trac-0.8.1-ticket-relations.patch (18.3 KB ) - added by havarden@… 20 years ago.
Another implementation for ticket relations. Quick and dirty, but can be extended to support backlinks. Added to show the design ideas rather than the implementation.
trac_r7937_ticket_relations.patch (26.7 KB ) - added by Joachim Hoessler <hoessler@…> 16 years ago.
Another implementation for links between tickets
ticket_relations-jh.png (9.9 KB ) - added by Christian Boos 14 years ago.
Displays Blocking/Blocked by relations (using patch from Joachim Hoessler updated for trunk [39beeca9d168/ticket-links])
ticket_relations-redmine.png (27.5 KB ) - added by Christian Boos 14 years ago.
Example alternative UI (snapshot from http://www.redmine.org/issues/1189)

Download all attachments as: .zip

Change History (193)

comment:1 by daniel, 21 years ago

Version: 2.0

comment:2 by daniel, 21 years ago

Milestone: 2.0
Version: 2.0devel

comment:3 by daniel, 21 years ago

I'm ambivalent regarding this one… Plain comments with TracLinks are quite useful on their own… Maybe we should avoid this feature to avoid complexities.

People who need more strict relationships between issues are probably better off using some dedicated issue tracker, like roundup or bugzilla or something… Just my two.

After all, informal is our game :)

/DanielLundin

comment:4 by bill@…, 20 years ago

I think a simple ticket_relations table with a schema like this would be simple and useful:

  • ticket1 (int)
  • relation (text)
  • ticket2 (int)

where relation could be (ideas):

  • 'blocks': implement bugzilla-style dependencies
  • 'is duplicate of': track duplicates
  • 'is related to': track related tickets
  • 'is subtask of': we often break down large tasks into smaller ones, this would be useful to associate the subtask with the main task

Then, on the ticket page, you could have a separate section that lists ticket relations, in both directions! (e.g. where ticketid == ticket1 or ticketid == ticket2)

comment:5 by scapo, 20 years ago

Owner: changed from Jonas Borgström to anonymous
Priority: lowesthighest
Severity: enhancementmajor
Status: newassigned

essai de gestion de projet

comment:6 by anonymous, 20 years ago

Here's a use case I consider reasonably important: show only tickets that are "actionable", that is, either do not depend on any ticket, or depend on closed tickets only.

comment:7 by anonymous, 20 years ago

Resolution: fixed
Status: assignedclosed

comment:8 by Jonas Borgström, 20 years ago

Resolution: fixed
Status: closedreopened

Why was this ticket closed?

comment:9 by Christopher Lenz, 20 years ago

Owner: changed from anonymous to Jonas Borgström
Status: reopenednew

#226 has been marked as duplicate of this ticket. See that ticket for a proposed patch and further comments, but add anything new here.

Also: resetting assignee to component owner.

comment:10 by Tristan Seligmann <mithrandi@…>, 20 years ago

Severity: majorenhancement

comment:11 by anonymous, 20 years ago

Priority: highestnormal

This certainly isn't highest priority.

comment:12 by robert.pollak@…, 20 years ago

Cc: robert.pollak@… added

comment:13 by david@…, 20 years ago

This is definitely something I would like to see. The "search for all actionable" idea is an excellent one, and the concept of subtasks is also very useful; Mozilla's use of "metabugs" for tracking large projects is something that seems like quite an effective organizational tool.

comment:14 by chris@…, 20 years ago

I would also like this. I would like 3 items based off this though:

1) child tickets. I can create a parent ticket, then create a child ticket which would allow me to link it. Say I need something done, but I need something else done in another ticket first, I can make a child.

2) Linking similar issues. I would like to be able to say x and y are similar, and when I close x, I'd like to close y with the same resolution code.

3) Hot issues. Pretty much like 2, but basically saying that there is a real issue. I can then notify all the ticket owners who related their ticket to the hot issue, but their ticket will not close.

These would make tickets with trac a lot easier to work with. Thanks a bunch for the great software so far. :D

by havarden@…, 20 years ago

Another implementation for ticket relations. Quick and dirty, but can be extended to support backlinks. Added to show the design ideas rather than the implementation.

comment:15 by Christian Boos, 20 years ago

Milestone: 2.00.9
Owner: changed from Jonas Borgström to Christian Boos
Status: newassigned

The original intent of this ticket was:

  • A simple list of related bugs without logical/implicit constraints …
  • It would also thus allow for reports showing "a bug and all related bugs" in some fashion, which could be neat.
  • This would also require checking for circular dependencies/relations.

This is fully implemented in TracCrossReferences, so I'll be able to close the ticket when this is merged in the trunk (some cleanups are still needed before that happens).

However, there are other points raised in the comments for this ticket:

  • duplicate tickets: I plan to do it like this: when one selects the duplicate resolution, an input field for filling the duplicate-of relation will be enabled.
  • child tickets: see #886 for this topic
  • linking similar issues: Trac handle this by closing the duplicate ticket with the duplicate resolution (see above)
  • hot tickets? (point 3. in the comment above): sorry, I don't get it.

comment:16 by robert.pollak@…, 20 years ago

Cc: robert.pollak@… added; robert.pollak@… removed

comment:17 by chris@…, 20 years ago

Cc: chris@… added

On linking, sometimes they are similar but not the same. I have a few tickets where one thing is similar to another, and if one ticket was resolved it would really help the other ticket, but overall they are different issues. If I could relate the two it would just be a more beneficial situation.

On hot tickets, this is before I saw the ticket priorities. I guess I overlooked them or something, I withdraw this request.

comment:18 by Christian Boos, 20 years ago

On linking as you expressed it: well, that would be just a normal cross-reference from one ticket to the other. You can infer the semantic by looking at the context (cross-references are listed along with a fragment of the context in which they were made).

I'll soon start the merging process, a.k.a have a chat with cmlenz :)

comment:19 by Florent Guillaume <fg@…>, 20 years ago

Cc: fg@… added

comment:20 by Christian Parpart <trapni@…>, 20 years ago

Cc: trapni@… added

what's the current state of development of this features? Is it already merged to trunk?

I'd really like to migrate from bugzilla/mediawiki completely to trac, but I can't unless it doesn't support ticket dependencies :)

besides, would it be possible to automatically get generated a tree-view describing current dependencies? (would be a neat feature though)

comment:21 by Christian Boos, 20 years ago

I first want to have 2 other, less complex, branches merged in the /trunk:

  • the category-branch (a.k.a ticket types, #919)
  • the intertrac-branch (see InterTrac)

After that, it's the turn of the xref-branch (see TracCrossReferences), for which I plan to add, besides what's currently done:

  • adding a time information in the xref table, so that the xrefs can be listed from the most recently created xref to the oldest.
  • adding a depends_on field/facet to the ticket table, so that the textual context in which the reference to the dependent ticket was entered can be remembered

About tree-view describing current dependencies?: I could add that, see Xref.get_dag.

comment:22 by Christopher Lenz, 20 years ago

#1540 has been marked as duplicate of this ticket.

comment:23 by anonymous, 20 years ago

Cc: mathieu@… added

comment:24 by Christopher Lenz, 19 years ago

Milestone: 0.91.0

Postponed.

comment:25 by dimitrisp <dimitrisp.lists@…>, 19 years ago

Cc: dimitrisp-lists@… added

comment:26 by Gunnar Wagenknecht <gunnar@…>, 19 years ago

Cc: gunnar@… added

comment:27 by anonymous, 19 years ago

Cc: vyt@… added

comment:28 by anonymous, 19 years ago

Cc: wjl@… added

comment:29 by Gunnar Wagenknecht <gunnar@…>, 19 years ago

Cc: robert.pollak@gmail.com, chris@growl.info, fg@nuxeo.com, trapni@gentoo.org,mathieu@ubertor.com, dimitrisp-lists@gmail.com,gunnar@wagenknecht.org, vyt@vzljot.ru, wjl@icecavern.net → robert.pollak@gmail.com, chris@growl.info, fg@nuxeo.com, trapni@gentoo.org, mathieu@ubertor.com, dimitrisp-lists@gmail.com, gunnar@wagenknecht.org, vyt@vzljot.ru, wjl@icecavern.net

comment:30 by anonymous, 19 years ago

Cc: radek@… added

comment:31 by dragisha@…, 19 years ago

Cc: dragisha@… added

comment:32 by anonymous, 19 years ago

Cc: mrovner@… added

comment:33 by chris@…, 19 years ago

This ticket is a good example of what we need with ticket dependencies:

http://trac.growl.info/trac/ticket/114

comment:34 by brianlsmith@…, 19 years ago

Cc: brianlsmith@… added

comment:35 by anonymous, 19 years ago

Cc: trac@… added

comment:36 by Russell Hind <rhind@…>, 19 years ago

Cc: rhind@… added

comment:37 by Christian Boos, 19 years ago

Keywords: xref added

Proposed UI

+----------------------------------------+
|                        |               |
|depends on: #123 #213   |  blocks: #456 |
|                                        |
|     ...  ticket description      ...   |
|                                        |
+----------------------------------------+

Attachment:

Change History:
 ....

Change Properties

 ...
 Cc:
 Depends on: _#123 #213________________

Action
  ...

Implementation detail

Until I find a good data model for generalized facets and properties, I've thought there can be an acceptable interim measure: storing the dependency information in the xref.context field. This means that whenever we have xref.facet == xref.relation, the xref.context is actually the full information, instead of an excerpt of some other source.

comment:38 by anonymous, 19 years ago

Cc: trac@… added

comment:39 by anonymous, 19 years ago

Cc: somekool@… added; mathieu@… removed

comment:40 by earle, 19 years ago

Cc: trac@… added

comment:41 by anonymous, 19 years ago

Cc: fg@… removed

comment:42 by anonymous, 19 years ago

Cc: shishz@… added

comment:43 by anonymous, 19 years ago

Cc: jorvis@… added

comment:44 by anonymous, 19 years ago

Cc: mjhweb-trac-tickets@… added

comment:45 by anonymous, 19 years ago

Cc: trac-spam@… added

comment:46 by anonymous, 19 years ago

Cc: mrovner@… added; mrovner@… removed

comment:47 by anonymous, 19 years ago

Cc: peter.merel@… added

comment:48 by Bruce Christensen <trac@…>, 19 years ago

Cc: trac@… removed

comment:49 by anonymous, 19 years ago

Cc: kveretennicov@… added

comment:50 by anonymous, 19 years ago

Cc: nick+trac@… added

comment:51 by anonymous, 19 years ago

Cc: ccidral.newsbox@… added

comment:52 by anonymous, 19 years ago

Cc: zoogie@… added

comment:53 by anonymous, 18 years ago

Cc: dlawson@… added

comment:54 by anonymous, 18 years ago

Cc: mark81@… added

comment:55 by anonymous, 18 years ago

Cc: gustavo.noronha@… added

comment:56 by anonymous, 18 years ago

Cc: carwyn@… added

comment:57 by anonymous, 18 years ago

Cc: jay@… added

comment:58 by anonymous, 18 years ago

Cc: mark@… added

comment:59 by anonymous, 18 years ago

Cc: gunnar@… removed

comment:60 by anonymous, 18 years ago

Cc: hwinkel@… added; brianlsmith@… robert.pollak@… chris@… trapni@… somekool@… dimitrisp-lists@… vyt@… wjl@… radek@… dragisha@… mrovner@… trac@… rhind@… trac@… shishz@… jorvis@… mjhweb-trac-tickets@… trac-spam@… peter.merel@… kveretennicov@… nick+trac@… ccidral.newsbox@… zoogie@… dlawson@… mark81@… gustavo.noronha@… carwyn@… jay@… mark@… removed

comment:61 by Russell Hind <rhind@…>, 18 years ago

Cc: brianlsmith@… robert.pollak@… chris@… trapni@… somekool@… dimitrisp-lists@… vyt@… wjl@… radek@… dragisha@… mrovner@… trac@… rhind@… trac@… shishz@… jorvis@… mjhweb-trac-tickets@… trac-spam@… peter.merel@… kveretennicov@… nick+trac@… ccidral.newsbox@… zoogie@… dlawson@… mark81@… gustavo.noronha@… carwyn@… jay@… mark@… added

hwinkel you removed everyone elses 'cc', not just added yours! Was this intended? If not, please can you cut and paste the cc's above and add them back in again?

comment:62 by Russell Hind <rhind@…>, 18 years ago

Sorry, looks like I added them back in, didn't mean to do that.

Russell

comment:63 by bfults@…, 18 years ago

Cc: bfults@… added

+1 for this feature.

comment:64 by trac@…, 18 years ago

Cc: trac@… added

Akismet

comment:65 by anonymous, 18 years ago

Cc: e@… added

comment:66 by anonymous, 18 years ago

Cc: me3xxx@… added

comment:67 by wkornewald, 18 years ago

What about this:

Instead of adding fields for dependencies you just link to the related tickets as you do now. The ticket details shows non-editable "Refers to:" and "Referred from:" fields with the ticket numbers that were mentioned in this ticket and tickets that mentioned this ticket. A link "Track relations" could give you a detailed overview page that shows the *comments* which related to/from the tickets, so you can immediately get a quick overview of the relevant information including its context in the affected tickets.

That way, you don't track dependencies using an extra field, but directly with the comments which has the following advantages:

  • simpler (no need to take care of extra fields)
  • more intuitive (you just type the description)
  • you can't forget to fill in a dependency field
  • it works instantly with existing Trac installations
  • you automatically connect the relation with a comment

in reply to:  67 comment:68 by Christian Boos, 18 years ago

Replying to wkornewald:

What about this: <snip>

Well, that's great, you just reinvented TracCrossReferences ;) It did just that, including showing a relevant fragment of the comments around the reference, to quickly grasp the context.

I should have produced snapshots at that time, but generalized cross-references were working great ;)

That way, you don't track dependencies using an extra field,

… but it also had provision for explicit linking (the relations part), though that part was never implemented in the UI.

comment:69 by wkornewald, 18 years ago

Ouch, you're right. I misunderstood TracCrossReferences. I thought it would require a special new link format, but the spec also speaks about general relations. Well, then I perfectly agree your solution! :)

Sorry for the noise…

comment:70 by Matthew Good, 18 years ago

#4477 has been marked as a duplicate.

comment:71 by mikd454@…, 18 years ago

Cc: mikd454@… added

comment:72 by Waldemar Kornewald <wkornewald>, 18 years ago

Cc: wkornewald added

comment:73 by Noah Kantrowitz <coderanger@…>, 18 years ago

Can some people please try out this plugin. Just install it and add a custom text field named "blocking". If you have any ideas for it, please let me know.

comment:74 by anonymous, 18 years ago

Cc: with@… added

comment:75 by Lukáš Petrovický <lukas@…>, 18 years ago

Cc: lukas@… added

comment:76 by anonymous, 18 years ago

Is it possible to explain the plan here? A lot of people are watching this ticket now, which should say something about the interest in it. I would personally love to use Trac but must stick with Bugzilla until this very fundamental feature is added.

comment:77 by anonymous, 18 years ago

Cc: brianlsmith@… removed

comment:78 by apexsutherland@…, 18 years ago

Cc: apexsutherland@… added

comment:79 by anonymous, 18 years ago

Cc: dicianno@… added

comment:80 by anonymous, 17 years ago

Cc: zeph.gillen@… added

comment:81 by anonymous, 17 years ago

Cc: wkornewald removed

comment:82 by anonymous, 17 years ago

Cc: wkornewald added

comment:83 by anonymous, 17 years ago

Cc: dilshod@… added

comment:84 by anonymous, 17 years ago

Cc: n00spam-developer@… added

comment:85 by ThurnerRupert, 17 years ago

so currently there is:

marked #5197 as dupl…

comment:86 by Thomas Vander Stichele <thomas@…>, 17 years ago

Cc: thomas@… added

comment:87 by anonymous, 17 years ago

Cc: al.barrett@… added

comment:88 by Pierre Phaneuf <pphaneuf@…>, 17 years ago

Cc: pphaneuf@… added

comment:89 by anonymous, 17 years ago

Cc: henry78@… added

cc changed: added henry78

in reply to:  73 comment:90 by anonymous, 17 years ago

Replying to Noah Kantrowitz <coderanger@yahoo.com>:

Can some people please try out this plugin. Just install it and add a custom text field named "blocking". If you have any ideas for it, please let me know.

Noah's plugin is working great for me so far and was a trivial install. Copy to Libs, add custom ticket type, and off you go.

(As an aside, throw my hat into the "Why isn't this a default feature?!" pile.)

comment:91 by anonymous, 17 years ago

Cc: louie@… added

comment:92 by anonymous, 17 years ago

Cc: mikepan@… added

comment:93 by anonymous, 17 years ago

Cc: alon.barlev@… added

comment:94 by anonymous, 17 years ago

Cc: przemjaskier@… added

Is there a time schedule for this task completion? Lack of this feature in the core cripples Trac and prevents it's better adoption…

comment:95 by anonymous, 17 years ago

Mylyn allows grouping by sub-tasks. Lack of this feature is degrading user experience from PM-perspective…

comment:96 by alon.barlev@…, 17 years ago

Hello,

I've read all related bugs, and could not figure out how this feature can be available using TracCrossReferences.

I don't care how it is called, master, dependency, blocker, relates.

What I require: bug A and bug B should be handled when bug C is completed. The tree bugs are assigned to different people. When bug C is closed, bug A and bug B CC list should be notified, so they know to perform whatever needed.

If I write #31 in bug text, say "This bug is depended on bug #31", and this bug is closed, then I the text is modified, example "This bug is depended on bug #30", this change in the status/text may trigger notification as if someone changed the bug text.

As far as I understand, changing the status of TracCrossReferences, does not cause all the references to be modified and treated as changed, so that subscribers get notification.

So any solution within current Trac features? I am afraid to install external plugins as it would break future migration.

I don't know how people may be expected to manage bug repository without relationship, how do you do this?

Thank you

comment:97 by nruffel@…, 17 years ago

Cc: nruffel@… added

This is definitely a must have feature!

comment:98 by rhind@…, 17 years ago

Cc: rhind@… removed

comment:99 by Noah Kantrowitz, 17 years ago

Any objections to closing this now that MasterTickets is stable and usable? It could be further generalized to support mutliple types of relations, but I think that should be left as a feature request on the plugin.

comment:100 by anonymous, 17 years ago

Using third-party plugin for such essential functionality looks risky. What about migration path and compatibility issues? There is no guarantee on the future compatibility of MasterTickets and Trac. Besides, MasterTickets looks quite limited. Trac is great, I bet you can do better than that.

I can't believe that Trac team avoided implementation of such essential feature for so long (this ticket is 4+ years old). I love Trac but it's unusable in large projects because of things like this. Sad.

in reply to:  100 comment:101 by Christian Boos, 17 years ago

Milestone: 1.0
Resolution: wontfix
Status: assignedclosed

Replying to anonymous:

Using third-party plugin for such essential functionality looks risky…

See googlegroups:trac-dev:31612a1978ef2609 for a follow-up on this.

comment:102 by alon.barlev@…, 17 years ago

I cannot believe this! So trac is not going to be decent bug tracking system… OK, I will wait for some better solution. This is sad, as the trac project is so close to provide proper functionality.

comment:103 by anonymous, 17 years ago

Resolution: wontfix
Status: closedreopened

Me neither. Why is this bug closed? If the use of an external plugin isn't satisfying, then this bug should be just a feature request, but not closed. (see type: enhancement)

comment:104 by armando@…, 17 years ago

cboos — that google link is interesting, but doesn't really defend closing this bug (if anything it just reiterates that the feature is sorely missed).

I think that for most of us, this has sealed the deal for continuance of use of Trac. There's no point anymore, it seems. For 4 years, people have been saying "Hey, we need this feature," and the core team has decided to ignore the desires of it's users, in the end. Honestly, I find it quite depressing. I mostly like Trac, but now that this issue has been tabled indefinitely, I'm officially giving up.

It's sad that a mish-mash of Wiki and Bugzilla can be more useful than the otherwise quite elegant Trac.

Also, I don't understand the purist idealogy that makes one /not/ want this feature in Trac, and I suppose I never will.

My 2¢, armando

comment:105 by just use redmine, 17 years ago

just use redmine www.redmine.org it is not as full-featured as trac but it is so much easier to set up and maintain. It's also catching up quickly. I believe it is less than 6 months old.

comment:106 by anonymous, 17 years ago

I agree with others here that the lack of this feature is what made me not use Trac. I was so unhappy with the available choices out there (integrated bug tracking, task tracking, wiki, timelines, etc.) that a group of developers and me created a new SF.net project from scratch to do all this. We've been working on it for about 6 months, and one of the key design goals is that it be visually appealing and have a great interface. Trac was so close but some key features like this one made it unusable for us.

I'll post again when we have our first release, though we've been using our new one internally for the last 2 months for testing. :)

comment:107 by armando@…, 17 years ago

On cursory examination redmine seems pretty great. I hate that RoR apps tend to take a lot of memory, but if it delivers what it claims (I especially like the multiple SCM integration), I'll be pleased.

Thanks for all the fish, Trac.

comment:108 by anonymous, 17 years ago

We (software development department of a major .eu telco) have migrated from Trac to Redmine recently after a long decision. Trac is a very, very good piece of software, but when it comes to a multiproject tracking, dependencies, time tracking - Trac looses the game.

We are using redmine for about two weeks for now and we love it.

Still, we'll keep on pulse of Trac because we love it, too and wish the best to the project:)

comment:109 by Noah Kantrowitz, 17 years ago

To anyone who thinks we are ignoring the request: I am both a developer of Trac itself, and the creator of the plugin. The issue of having the feature is not being debated, nor will I stop maintaining the feature in either location. The location of the code is what is up for discussion, I personally would rather keep it in a small-standalone plugin rather than tie it directly to the Trac codebase (as mentioned in the thread). To say that "it doesn't count if its not in core" is counter to many of the ideals Trac is based on IMO. The basic feature is there, it works well and and provides a flexible way to work with ticket dependencies. I am not saying it is finished, just that I think it would help everyone to move more specific requests (multiple link types, non-blocking links, better reporting views, etc) over to the plugin where they can be dealt with directly. I should have been more clear about my intentions with this.

comment:110 by ThurnerRupert, 17 years ago

what would be interesting:

comment:111 by Christopher Lenz, 17 years ago

This ticket should not have been closed, so thanks anonymous for reopening it. There certainly is no consensus that Trac shouldn't have ticket dependencies, or that it should be in a plugin instead of in core.

So why hasn't this been implemented yet after such a long time? That's due to how open source projects works, in particular when they are not backed by a company that provides financial backing or resources, and how such projects depend on people who need features to step up and help implement them. Unfortunately this particular feature has seen very little of that.

comment:112 by anonymous, 17 years ago

cmlenz, nkantrowitz

Problem with Trac and this dependency extension is that I'm aware of a few such plugins/extensions/whatevers: xrefs, MasterTickets, and others listed on wiki. Trac starts to become a mess! A lot of effort is lost for duplicated, malfunctioning modules scattered around instead of being brought to the core.

If someone chooses ticket system, even in case of a small opensource project it IS an investment in the future. Hawing so many similar solutions, none of these being actually fully implemented satisfactory solution for such a basic need as dependencies is ridiculous. Migration? Maintenance? Upgrades? Come on…

Plugins have sense for very rarely used stuff or niche, third party integration modules, but popular SCMs and model should be supported by the core, assuring consistency in development.

If this was what cboos was fighting for, I've lost hope in Trac now, as cboos made a statement he quits.

It's incredible that Redmine in 6 months has implemented features which didn't make into Trac for 4+ years (poorly developed modules do not count): http://www.redmine.org/wiki/redmine

I'm migrating as soon as Redmine stabilizes. AFAIK they provide a migration tool for Trac users.

Thanks guys, anyway.

in reply to:  112 comment:113 by anonymous, 17 years ago

Replying to anonymous:

It's incredible that Redmine in 6 months has implemented features which didn't make into Trac for 4+ years (poorly developed modules do not count): http://www.redmine.org/wiki/redmine

I'm migrating as soon as Redmine stabilizes. AFAIK they provide a migration tool for Trac users.

The trac import does work well. I've migrated 2 trac systems to redmine without issue.

in reply to:  112 comment:114 by ebray <hyugaricdeau@…>, 17 years ago

Replying to anonymous:

cmlenz, nkantrowitz

Problem with Trac and this dependency extension is that I'm aware of a few such plugins/extensions/whatevers: xrefs, MasterTickets, and others listed on wiki. Trac starts to become a mess! A lot of effort is lost for duplicated, malfunctioning modules scattered around instead of being brought to the core.

I've encountered very few Trac plugins that are incompatible with each other or that make things "messy". I suppose that partially depends on just how many plugins you're using at once though.

If someone chooses ticket system, even in case of a small opensource project it IS an investment in the future. Hawing so many similar solutions, none of these being actually fully implemented satisfactory solution for such a basic need as dependencies is ridiculous. Migration? Maintenance? Upgrades? Come on…

We've been using Trac heavily for a couple years now, and though we do sometimes have ticket dependencies, we simply write in the ticket, "This ticket depends on #a #b #c" or somesuch. I'm not saying that's anywhere near ideal for everyone—some people need stronger dependency tracking. But the MasterTicketsPlugin provides this pretty well—especially the 0.11 version. It's really not such a pain to install most Trac plugins.

comment:115 by druid@…, 17 years ago

I recently started having tickets that were blocked until others are completed and started looking for this feature, so consider this another vote to properly implement this in Trac. The primary use I was looking for was to help weight blockers for priority based on how many other tickets were blocked by them, so a dependency tree graph or even a simple dependency count would be extremely useful.

in reply to:  115 comment:116 by Noah Kantrowitz, 17 years ago

Replying to druid@caughq.org:

I recently started having tickets that were blocked until others are completed and started looking for this feature, so consider this another vote to properly implement this in Trac. The primary use I was looking for was to help weight blockers for priority based on how many other tickets were blocked by them, so a dependency tree graph or even a simple dependency count would be extremely useful.

You mean like the depgraph MasterTickets generates?

comment:117 by cjunge@…, 16 years ago

Cc: cjunge@… added

comment:118 by trapni@…, 16 years ago

Cc: trapni@… removed

i've given up using trac in favor of redmine, which has this feature implemented. i'll continue to watch the progress of trac of course, but currently, redmine is by far the more powerfull tool, supports multiple projects in not the hackish way, supports even GIT repositories officially, and - of course - knows about ticket relations/dependancies.

comment:119 by jaylward@…, 16 years ago

Cc: jaylward@… added

comment:120 by Remy Blank, 16 years ago

Milestone: 1.0
Owner: Christian Boos removed
Status: reopenednew

Re-scheduling to latest milestone in ticket history.

comment:121 by anonymous, 16 years ago

I've read the entire comments discussion multiple times. I think there's more to this than just master tickets (#886 or the external plugin). There's also more to it than just using "duplicate" to express a relationship and TracCrossReferences doesn't quite get us all the way there.

I'd like to see something like this (keep in mind, I don't know the database schema, and I don't know python, just throwing out an idea here):

  • A ticket_relationship_types table that lets me configure different relationship types in the web admin.
    • The able contains left hand side text and associated right hand side text.
    • Built in types would be "blocks / is blocked by", "is related to / is related to", "is a sub-task of / has sub-task", "precedes / follows".
    • Since this would be configurable I can add my own custom types for my project, such as "is a user story of / has user story"
  • A ticket_relationship table that matches a left-hand-side ticket with a right-hand-side ticket and a certain relationship type.
  • When I view a ticket, the left-hand-side ticket gets the "blocks" text in its properties and the right-hand-side ticket gets the "is blocked by" in its properties.

I think this sort of system would fit the bill. It's completely flexible, and it's opt-in (no need to use it, but for those of that do it would be great if the option was there). I think this covers everything from a ticket standpoint, but to make it more powerful, obvisouly we would want to have reports.

The precedes/follows relationship type would be great for making gantt charts to give an idea of the ticket order of completion within a milestone (block/blocked by is precedes/follows in disguise).

Hopefully this discussion isn't dead. I think ticket relationships is a really important features, and I'd like to see it be part of the core itself.

in reply to:  121 comment:122 by osimons, 16 years ago

Replying to anonymous:

I've read the entire comments discussion multiple times. I think there's more to this than just master tickets (#886 or the external plugin). There's also more to it than just using "duplicate" to express a relationship and TracCrossReferences doesn't quite get us all the way there.

I'd like to see something like this (keep in mind, I don't know the database schema, and I don't know python, just throwing out an idea here):

snip… snip… snip… (see above)

That was more or less my thoughts as well, and your ideas I think fit quite well with my TracDev/Proposals/TracRelations proposal. I'd like a general API in Trac for relationships that would allow code/plugins to build any kind of mechanism enforcing structure and dependencies.

comment:123 by al.barrett@…, 16 years ago

Cc: al.barrett@… removed

comment:124 by braden@…, 16 years ago

Cc: braden@… added

comment:125 by anonymous, 16 years ago

Priority: normallow

comment:126 by anonymous, 16 years ago

Priority: lownormal

by Joachim Hoessler <hoessler@…>, 16 years ago

Another implementation for links between tickets

comment:127 by Joachim Hoessler <hoessler@…>, 16 years ago

Cc: hoessler@… added

This patch against source:trunk@7937 is another shot at this issue. It implements configurable relationships between tickets in a rather straight forward way. It includes

  • a new database that stores source, destination and the type of a link
  • a new extension point in the ticket api that allows other components to provide information on links
  • an component that uses this extension point to create links as specified in trac.ini in the form of
    [trac-links]
    blocker = blocking, blockedby
    blocking.label = Blocking
    blockedby.label = Blocked By
    blocker.validator = no_cycle
    
  • the implementation supports bidirectional links (the opposite direction is set automatically), unidirectional links and reflective links
  • validation is implemented through the ITicketManipulater interfaces
  • links are edited and rendered in the ticket view as text fields in the format "#1, #2, #5"

The basic stuff works so far. However, it doesn't implement ticket "blocking" or other workflow related impact of links yet, but this could be easily added, either in this implementation, or in a plugin. Also, any visualization of dependencies isn't included yet.

I know that there are suggestions in this ticket thread for a more advanced approach, but I think this implementation should be sufficient for most of the use cases.

comment:128 by trac@…, 16 years ago

Cc: trac@… added

comment:129 by Sebastian Heuchler <sheuchler@…>, 15 years ago

Cc: sheuchler@… added

comment:130 by apexsutherland@…, 15 years ago

Cc: apexsutherland@… removed

comment:131 by koen2@…, 15 years ago

Cc: koen2@… added

comment:132 by dragisha@…, 15 years ago

Cc: dragisha@… removed

No hope to see some change here, as far as I can see from some year being on list :)

comment:133 by anonymous, 15 years ago

I'm not sure why the proposed patches aren't getting reviewed. I don't know enough about Trac core myself to understand it.

In the meantime, I ported my http://trac-hacks.org/wiki/TracDupPlugin to 0.11 We use that just fine at work, and the important parts there are being able to duplicate easily (closing the ticket as such), and reports on duplicate counts.

comment:134 by Drops <drop_s@…>, 15 years ago

+1

in reply to:  127 comment:135 by Drops <drop_s@…>, 15 years ago

Replying to Joachim Hoessler <hoessler@…>:

[trac-links]
blocker = blocking, blockedby
blocking.label = Blocking
blockedby.label = Blocked By
blocker.validator = no_cycle

I have patched my Trac 0.12dev(source:trunk@8552) demo site and found that instead of [trac-links] has to be [ticket-links].

comment:136 by Hasan Khalil <mian.hasan.khalil@…>, 15 years ago

Cc: mian.hasan.khalil@… added

comment:137 by n-roeser@…, 15 years ago

Cc: n-roeser@… added

comment:138 by hongqn@…, 15 years ago

Cc: hongqn@… added

comment:139 by Christian Boos, 15 years ago

Milestone: 1.0unscheduled

Milestone 1.0 deleted

comment:140 by anonymous, 14 years ago

Just a note that I'd also really like this feature. Quite often you have one or more user-visible features (each with a bunch of discussion about how it should work) that depends on a major core feature. The latter will have its own discussion about how it should be implemented. I'd like to have separate bugs, with a note about the dependency, and possibly priority inheritance.

I'm a brand new Trac user, started installing on Monday, and already Wednesday morning I want this feature. We're just using it for sysadmin type tasks, and I need a way to explain that "set up database mirroring" depends on "install new server". Conceptually, they're separate things (one set of comments is about performance and recovery procedures, while the other is about parts selection and rack space), but there's a dependency…

This two-level milestone/ticket thing is too limiting.

comment:141 by anonymous, 14 years ago

Resolution: fixed
Status: newclosed

Found a solution! The th:wiki:MasterTicketsPlugin provides this feature. You can see it in use at http://trac.xbmc.org/

in reply to:  141 comment:142 by dilshod@…, 14 years ago

Replying to anonymous:

Found a solution! The th:wiki:MasterTicketsPlugin provides this feature. You can see it in use at http://trac.xbmc.org/

Shouldn't this ticket be closed by the owner of the ticket instead of an anonymous user? What's the official word on this?

comment:143 by anonymous, 14 years ago

Resolution: fixed
Status: closedreopened

It should not be closed… The way Trac team is aproaching this subject and because it takes so long, made me drop Trac. Featurewise, Redmine leaves Trac far, far behind.

comment:144 by sheuchler@…, 14 years ago

Cc: sheuchler@… removed

removing mail… have to add a comment so it won't be branded as spam >_>

in reply to:  127 comment:145 by Christian Boos, 14 years ago

Keywords: dependencies block duplicate added; xref removed
Milestone: triagingnext-major-0.1X

Replying to Joachim Hoessler <hoessler@…>:

First, sorry for not having reviewed the patch earlier…

This patch against source:trunk@7937 is another shot at this issue. It implements configurable relationships between tickets in a rather straight forward way. It includes

  • a new database that stores source, destination and the type of a link
  • a new extension point in the ticket api that allows other components to provide information on links
  • an component that uses this extension point to create links as specified in trac.ini in the form of
    [trac-links]
    blocker = blocking, blockedby
    blocking.label = Blocking
    blockedby.label = Blocked By
    blocker.validator = no_cycle
    
  • the implementation supports bidirectional links (the opposite direction is set automatically), unidirectional links and reflective links
  • validation is implemented through the ITicketManipulater interfaces
  • links are edited and rendered in the ticket view as text fields in the format "#1, #2, #5"

The basic stuff works so far.

This looks good, both in terms of functionality and code.

However, it doesn't implement ticket "blocking" or other workflow related impact of links yet, but this could be easily added, either in this implementation, or in a plugin.

If someone wants to get this integrated, it would be nice to refresh the patch against trunk, to perform a clean-up along the lines of TracDev/CodingStyle and, in a second step, to add a "blocker" ITicketManipulator.

Also, any visualization of dependencies isn't included yet.

This isn't necessary, but could always be added later as a tracopt component.

I know that there are suggestions in this ticket thread for a more advanced approach, but I think this implementation should be sufficient for most of the use cases.

Agreed. It seems that a better handling of duplicates could also be easily added on top of this, even possibly a parent/child relationship, yet this keeps the approach reasonably simple.

comment:146 by koen2@…, 14 years ago

Cc: koen2@… removed

[Removing e-mail address from CC]

Thanks for the great product nonetheless :)

comment:147 by Christian Boos, 14 years ago

I've updated the patch for trunk, and the patch seems to work fine. However, the UI is a bit rudimentary:

Displays //Blocking/Blocked by// relations (using patch from Joachim Hoessler updated for trunk [39beeca9d168/ticket-links])

I prefer the way it looks in RedMine:

Example alternative UI (snapshot from http://www.redmine.org/issues/1189)

(from #1189 at redmine.org)

Time for a topic clone ;-)

by Christian Boos, 14 years ago

Attachment: ticket_relations-jh.png added

Displays Blocking/Blocked by relations (using patch from Joachim Hoessler updated for trunk [39beeca9d168/ticket-links])

by Christian Boos, 14 years ago

Example alternative UI (snapshot from http://www.redmine.org/issues/1189)

comment:148 by Christian Boos, 14 years ago

I just added the ticket-links Mercurial clone. There, you'll find the ticket-links branch which corresponds to the original patch on r7937, and the ticket-links-trunk which is that branch merged on latest trunk (r9982), plus a few fixes of mine.

If you want to try it out, please read comment:135, the configuration section name in the TracIni is [ticket-links]. This patch upgrades the database to version 27, so either use a copy of your environment before upgrading or create a fresh environment to play with, as there's no guarantee that this step 27 will be the definitive one.

Testing, feedback and further patches welcomed.

comment:149 by Christian Boos, 14 years ago

Keywords: field links relations added
Owner: set to Christian Boos
Priority: normalhigh
Status: reopenednew

I've made a few progress yesterday, it works a bit better but I also see a few issues or difficulties with this approach. As the notes in this comment grew bigger, I've moved it in a TicketLinks page describing the work in progress.

comment:150 by lkraav <leho@…>, 14 years ago

Cc: leho@… added

comment:151 by Itamar Oren, 14 years ago

Cc: itamarost@… added

comment:152 by Erik Andersson <kirean@…>, 14 years ago

Cc: kirean@… added

comment:153 by Michael Imamura <zoogie@…>, 14 years ago

Cc: zoogie@… removed

comment:154 by dlawson@…, 14 years ago

Cc: dlawson@… removed

comment:155 by hasienda <hoff.st@…>, 14 years ago

Cc: hoff.st@… added

Once again I learned a lot about (past) Trac development (culture) by reading through this top-down plus the linked trac-dev thread.

But I've lost more than one hour for Trac (plugin) development and got another task I'd love to help finishing it up, if only I had more free time to throw in. Anyway, I really hope the approach will a) be somewhat superior to existing solutions and b) materialize soon into trunk to save many more people from spending 1+ hour of their time too, so they could spend it on Trac development instead, right?

comment:156 by jay@…, 14 years ago

Cc: jay@… removed

remove

comment:157 by DT <dilshod@…>, 14 years ago

Cc: dilshod@… removed

comment:158 by Mikko Rantalainen <mikko.rantalainen@…>, 14 years ago

Cc: mikko.rantalainen@… added

comment:159 by Alex Willmer <alex@…>, 14 years ago

Cc: alex@… added

My extensions to cboos branch is reaching a conclusion. The code is on Bitbucket http://bitbucket.org/moreati/trac-ticketlinks/ (just a convenient place to publish a Mercurial branch).

Current features are display of linked tickets, configurable blocking and create linked ticket with configured fields pre-populated. Please feel free ask questions regarding the branch on the TracDev or TracUsers list and I would be happy to answer them. Also I'm in IrcChannel as moreati.

comment:160 by Christian Boos, 14 years ago

Thanks for your contributions! This looks very interesting but I still didn't have time to go through the changes to give you proper feedback. This will come ;-) I've nevertheless brought them in my clone on t.e.o, for easier inspection by others.

There are several branches there, maybe you could shortly summarize what's to be found in each (on the TicketLinks page).

I've myself paused the work on the ticket-links branch as after exploring a bit the way the relations were stored, I was not satisfied with the way to store ticket properties, which brought its own share of issues (notably in the custom query module - let's see how you dealt with that). So my current feeling is that I really need to progress first on the GenericTrac API and storage model, to see how this can benefit to this feature (and related ones like #886). I suppose most of what you've done will still be reusable even if the storage changes.

in reply to:  160 comment:161 by Alex Willmer <alex@…>, 14 years ago

Replying to cboos:

Thanks for your contributions!

You're most welcome, and thank you.

There are several branches there, maybe you could shortly summarize what's to be found in each (on the TicketLinks page).

There are only two branches of consequence:

  • ticket-links-trunk - Direct continuation of your work, intended for incorporation into Trac mainline.
  • remote-tickets - Variation of TicketSystem.parse_links() to ignore name:#n links to work with a th:RemoteTicketPlugin I'm writing.

I've myself paused the work on the ticket-links branch as after exploring a bit the way the relations were stored, I was not satisfied with the way to store ticket properties, which brought its own share of issues (notably in the custom query module - let's see how you dealt with that).

I didn't I'm afraid, and I hadn't considered it. Are you referring to "specialized queries […] like showing all the duplicates by getting the transitive closure of the duplicate-of link"?

So my current feeling is that I really need to progress first on the GenericTrac API and storage model, to see how this can benefit to this feature (and related ones like #886). I suppose most of what you've done will still be reusable even if the storage changes.

Yes, it should be reusable. Data access, validation routines and behaviour are quite loosely coupled. There's unit test coverage throughout. The weak points I see are i18n, UI/formatting and maybe functional tests.

comment:162 by joao.antunes@…, 14 years ago

Cc: joao.antunes@… added

comment:163 by cv.mail@…, 14 years ago

Cc: cv.mail@… added

comment:164 by brad-trac@…, 14 years ago

Cc: brad-trac@… added

comment:165 by Dave Heston <david@…>, 14 years ago

Cc: david@… added

comment:166 by with@…, 14 years ago

Cc: with@… removed

comment:167 by alex@…, 13 years ago

I have merged the 0.12-stable branch in to the ticket-links branch on bitbucket https://bitbucket.org/moreati/trac-ticketlinks. All unit tests and functional tests pass, but note that the ticket-links changes only have unit test coverage.

comment:168 by Ethan Jucovy <ethan.jucovy@…>, 12 years ago

Cc: ethan.jucovy@… added

comment:169 by net147@…, 12 years ago

Cc: net147@… added

comment:170 by Mikael Relbe, 12 years ago

Cc: Mikael Relbe added

comment:171 by marcus@…, 12 years ago

Cc: marcus@… added

comment:172 by franz.mayer@…, 12 years ago

Cc: franz.mayer@… added

comment:173 by lkraav <leho@…>, 12 years ago

I'm liking the lightweightish markup approach to subtasklists Github published today. I was already doing something similar before, just keeping track of "subtickets" as a simple list inside Description and sort of manually linking them to comment numbers. Too much manual work, of course, but now I'm a bit more confident that I was on the right path and if well implemented, it could work.

in reply to:  173 comment:174 by Ryan J Ollos <ryan.j.ollos@…>, 12 years ago

Replying to lkraav <leho@…>:

I'm liking the lightweightish markup approach to subtasklists Github published today.

That looks really nice. Thanks for sharing!

comment:175 by wjl@…, 12 years ago

Cc: wjl@… removed

comment:176 by vladimir.chebotarev@…, 12 years ago

Cc: vladimir.chebotarev@… added

comment:177 by jaywir3@…, 12 years ago

Cc: jaywir3@… added

comment:178 by anonymous, 11 years ago

Is anyone reviewing one of the patches suggested above? Or is the Trac MasterLinks plugin still the only realistic option? (I'm waiting for its web site to load while writing this…)

comment:179 by jaylward@…, 11 years ago

Cc: jaylward@… removed

comment:180 by Ryan J Ollos, 11 years ago

There are several ticket relations plugins on trac-hacks, including th:MasterTicketPlugin (trac-hacks.org is down at the moment). They all have significant shortcomings from what I've seen. In the future we might consider back-porting [bh:wiki:/Proposals/BEP-0006 BloodhoundRelationsPlugin], but that will take some time.

comment:181 by mmalmeida, 11 years ago

Not sure if it is directly related to this, but it would be cool to have a github-like feature of adding comment links on referenced tickets.

Eg: Ticket #2 new comment: This is related with #1! Triggers new comment in #1: Comment in #2 references this ticket: This is related with #1!

in reply to:  181 comment:182 by ejucovy@…, 11 years ago

Replying to mmalmeida:

Not sure if it is directly related to this, but it would be cool to have a github-like feature of adding comment links on referenced tickets.

Eg: Ticket #2 new comment: This is related with #1! Triggers new comment in #1: Comment in #2 references this ticket: This is related with #1!

There's a plugin th:TracBacksPlugin which provides the feature you're describing.

comment:183 by Alex Willmer <alex@…>, 10 years ago

Cc: alex@… removed

comment:184 by Alex Willmer <alex@…>, 10 years ago

Cc: alex@… added

WTF I swear I didn't remove myself.

comment:185 by anonymous, 10 years ago

Opened 11 years ago. Moved off of Trac 7 years ago. I still leave myself on the CC list for this issue to get occasionally reminded how much happier I am using something else.

comment:186 by Ryan J Ollos, 10 years ago

Owner: Christian Boos removed

comment:187 by Henry78 <henry78@…>, 9 years ago

Cc: henry78@… removed

comment:188 by Carwyn <carwyn@…>, 9 years ago

Cc: carwyn@… removed

comment:189 by Braden McDaniel <braden@…>, 2 years ago

Cc: braden@… removed

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The ticket will remain with no owner.
The ticket will be disowned.
as The resolution will be set. Next status will be 'closed'.
The owner will be changed from (none) to anonymous. Next status will be 'assigned'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.