Opened 17 years ago
Closed 5 years ago
#2642 closed enhancement (wontfix)
Allow field order to be specified
Reported by: | Jason Trahan | Owned by: | obs |
---|---|---|---|
Priority: | high | Component: | BlackMagicTicketTweaksPlugin |
Severity: | normal | Keywords: | |
Cc: | sue.sml2006@… | Trac Release: | 0.11 |
Description
It would be nice to be able to specify what order the built in fields get rendered.
IE
component.order = 1 type.order = 2 priority.order = 3 }}]
Attachments (0)
Change History (12)
comment:1 Changed 15 years ago by
Summary: | Field Order → Allow field order to be controlled |
---|
comment:2 Changed 15 years ago by
Summary: | Allow field order to be controlled → Allow field order to be specified |
---|
comment:3 Changed 15 years ago by
Owner: | changed from Stephen Hansen to obs |
---|---|
Priority: | normal → high |
That's a good idea, I like it.
comment:4 Changed 14 years ago by
Cc: | sue.sml2006@… added; anonymous removed |
---|
would also like this feature
comment:5 Changed 14 years ago by
Thumbs up, we'd love that, too. May also co-fix the problem that hidden fields sometimes leave a blank space in the form.
an easier to edit way to configure the order may be:
order = type, component, author, owner, priority, severity
(and what's not in that list gets rendered behind these in the default order)
Thanks for the good and flexible plugin!
comment:6 Changed 14 years ago by
I also think that this is a good idea. My boss don't like that, and I'm the smack boy :P
comment:7 follow-up: 8 Changed 13 years ago by
For people waiting on this, a possible workaround is documented at http://taroza[dot]wordpress[dot]com/2009/12/21/arrange-fields-in-trac-tickets/ (sorry, trac-hacks doesn't like wordpress links!) - basically, follow these steps:
- Take a copy of the tile templates/ticket.html (from http://trac.edgewall.org/browser/branches/0.12-stable/trac/ticket/templates/ticket.html?format=txt, for example, although it'd be better to use the copy from inside your own zipped source)
- Add the code snippet provided at the above link at the top of that file, changing the line
field_types = ["type", "priority", "milestone", "keywords", "cc", "component"]
so it contains your fields in the order you require (this can be a mix of custom and in-built fields). Any fields not included in this list will appear at the end of the ticket form.
- Save the file to your project's _template_ directory.
Worked for me. Not an ideal solution, as you'll have to check ticket.html for changes whenever you upgrade Trac, but workable.
comment:8 Changed 13 years ago by
Replying to fleeblewidget@gmail.com:
For people waiting on this, a possible workaround is documented at http://taroza[dot]wordpress[dot]com/2009/12/21/arrange-fields-in-trac-tickets/ (sorry, trac-hacks doesn't like wordpress links!) - basically, follow these steps:
That link is dead now. Do you have a new location for the blog?
comment:9 follow-up: 10 Changed 13 years ago by
Still works for me. You have to replace every [dot] with an actual '.' character - I couldn't post the comment with a wordpress link in it.
For everybody's convenience, I've made a post on my blog which contains the working link. http://fleeblewidget.co.uk/2012/04/rearranging-ticket-fields-in-trac/
comment:10 Changed 13 years ago by
Replying to fleeblewidget:
For everybody's convenience, I've made a post on my blog which contains the working link. http://fleeblewidget.co.uk/2012/04/rearranging-ticket-fields-in-trac/
Ahh, thank you. I may have noticed the [dot]
s had I actually looked before commenting ;)
comment:11 Changed 8 years ago by
Are there any news on this request? Having the order attribute for custom ticket fields it is still not possible to change the order of the builtin fields like type or priority.
comment:12 Changed 5 years ago by
Resolution: | → wontfix |
---|---|
Status: | new → closed |
This plugin is deprecated in Trac 1.4 and later. See migration tips on BlackMagicTicketTweaksPlugin page.
Even better if this could include custom fields as well.