Opened 7 years ago

Closed 6 years ago

#2933 closed enhancement (maybelater)

Provide shortcode for linking to unanswered tickets for a component

Reported by: desrosj's profile desrosj Owned by:
Milestone: Priority: normal
Component: Make (Get Involved) / P2 Keywords: needs-patch


On the components page (, there is a column stating the number of unanswered trac tickets belonging to each component linking to a trac query for said tickets. The link is a query by ticket number that is cached.

In writing agendas for bug and ticket scrubs, this list of tickets can become inaccurate between the time the agenda goes out and the time the scrub happens.

It would be great if there was a shortcode that could be used in posts on Make blogs that would automatically refresh itself in the same way the components page does.


[unanswered-tickets component="media"]

It would also be great if this could include tickets with a focus. Multisite, for example, has a component and a focus in trac.

Some other potential examples (which may or may not be possible to generate and may Need separate tickets).

Unanswered tickets with a specific focus, component independant:

[unanswered-tickets focus="multisite"]

Unanswered tickets not in a component, but with a specific focus:

[unanswered-tickets component="!multisite" focus="multisite"]

More than happy to supply a patch for this if it would be accepted/blessed. Making this ticket as a brain dump as a reminder to circle back.

Change History (6)

#1 @Otto42
7 years ago

The code to do this page is here:

Look at the generate_component_breakdowns() function to see where it gets the data and caches it on a 5 minute cycle.

There's no shortcode in there, but the code is straightforward enough that it should be easy to add one.

#2 @SergeyBiryukov
7 years ago

  • Component changed from General to Make (Get Involved) / P2

#3 @obenland
6 years ago

@desrosj Any progress on this? Or should we do this maybelater?

#4 @desrosj
6 years ago

@obenland I am going to prioritize this over the next week to have a workable patch.

#5 @obenland
6 years ago

maybelater? :)

#6 @desrosj
6 years ago

  • Resolution set to maybelater
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.