Modify

Opened 9 years ago

Last modified 4 weeks ago

#2642 new enhancement

Allow field order to be specified

Reported by: jtrahan 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 (11)

comment:1 Changed 7 years ago by rjollos

  • Summary changed from Field Order to Allow field order to be controlled

comment:2 Changed 7 years ago by rjollos

  • Summary changed from Allow field order to be controlled to Allow field order to be specified

Even better if this could include custom fields as well.

comment:3 Changed 7 years ago by obs

  • Owner changed from ixokai to obs
  • Priority changed from normal to high

That's a good idea, I like it.

comment:4 Changed 6 years ago by anonymous

  • Cc sue.sml2006@… added; anonymous removed

would also like this feature

comment:5 Changed 6 years ago by kuehn@…

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 6 years ago by anonymous

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: Changed 5 years ago by fleeblewidget

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:

  • 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 in reply to: ↑ 7 Changed 5 years ago by rjollos

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: Changed 5 years ago by fleeblewidget

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 in reply to: ↑ 9 Changed 5 years ago by rjollos

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 4 weeks ago by massimo.b@…

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.

Add Comment

Modify Ticket

Action
as new The owner will remain obs.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.