# Ticket #4976 (closed defect: worksforme)

Opened 4 years ago

## Dependent tickets should link to each other

Reported by: Assigned to: mattcaron coderanger normal MasterTicketsPlugin normal 0.11

### Description

Ticket 1 blocks 2 Ticket 2 is therefore blocked by ticket 1

The ticket numbers in the "Blocked by" and "Depends on" fields should be links to the tickets which are listed in the fields.

## Change History

### 04/24/09 03:22:14 changed by mattcaron

I should mention that this is trac 0.11.5stable and TracMasterTickets? 2.1.3. Both are built from svn sources.

### 04/26/09 04:40:51 changed by mattcaron

I tried this in 0.11.4 and that doesn't seem to work either.

### 05/20/09 21:34:43 changed by IBBoard

I'm running 0.11.4 and the links are there on the ticket page, but not in the query. I was looking at some of the spare files the other day* and there is a JavaScript? file that appears as if it tries to link the ones in the table but it never gets called and I'm not sure if it would actually work.

* there are various unused images and JS, but one JS was supposed to be used that wasn't installed on my site and was producing an Error 404

### 11/06/09 00:46:48 changed by rjollos

If the property change in the ticket read Blocked by #X rather than Blocked by X, perhaps a link would automatically render?

### 11/06/09 21:02:47 changed by IBBoard

Possibly, but it depends how the query page is rendered. The individual ticket pages link correctly for me, but if you introduce the extra columns in to the query page then it just lists numbers without linking them. If you rendered them with a # then Trac might render them as links, but it depends whether that is wiki text functionality only that isn't called for the table fields.

### 04/21/10 10:39:00 changed by anonymous

Trac 0.12 seems to have different data format, that is passed to post_process_request.

I changed mastertickets/web_ui.py from

            data['mastertickets'] = {
'field_values': {
},
}


to

             for field in data['fields'][:]:
if field['name'] == 'blocking':
elif field['name'] == 'blockedby':


And now links work in ticket info

### 05/03/10 15:09:08 changed by anonymous

• release changed from 0.11 to 0.12.
• type changed from enhancement to defect.

I'm using trac 0.12 and also lost the ticket link, finally I wrote a different patch with the above post, although maybe the above patch is better than this:

Index: mastertickets/web_ui.py
===================================================================
--- mastertickets/web_ui.py     (revision 7916)
+++ mastertickets/web_ui.py     (working copy)
@@ -32,7 +32,7 @@
use_gs = BoolOption('mastertickets', 'use_gs', default=False,
doc='If enabled, use ghostscript to produce nicer output.')

fields = set(['blocking', 'blockedby'])

# IRequestFilter methods


### 07/19/10 12:17:29 changed by anonymous

• status changed from new to closed.
• resolution set to duplicate.

### 07/22/10 14:12:10 changed by ibboard

• status changed from closed to reopened.
• resolution deleted.

This isn't a duplicate of #7139 - this was a 0.11 issue and not a 0.12 issue.

### 08/12/10 22:07:15 changed by anonymous

• release changed from 0.12 to 0.11.

I have the same issue in TRAC 0.11.

The dependency graph works fine. When you update a block or blocking field it updates the corresponding ticket correctly, but the ticket numbers don't become links. Everything else seems fine.

### 04/23/12 21:11:08 changed by anonymous

I am using Trac 0.11.7 and am still having this issue.

### 10/08/12 21:54:36 changed by rjollos

• status changed from reopened to closed.
• resolution set to worksforme.

See also #7936. I believe this has been fixed in the latest revision of the plugin. See 47a7aee54553fb718c376cfa9d7de4389a391e33. Please reopen if you continue to have issues and can provide more details about your configuration.