Ticket #1209 (closed feature: fixed)

Opened 5 years ago

Last modified 5 years ago

add ticket state

Reported by: tschaub Owned by:
Priority: minor Milestone:
Component: general Version: 2.5
Keywords: Cc:
State: Complete

Description

As pgiraud pointed out, this can be handled in trac config. The example for Triage Stage looks a lot like what we could use for "State."

#stage = select
#stage.label = Triage Stage
#stage.options = Unreviewed|Needs more info|Needs design
decision|Accepted|Ready for review
#stage.order = 5
#stage.value = 0

Change History

  Changed 5 years ago by fredj

BTW, can you install the enscript debian package to activate syntax coloring ?

see TracSyntaxColoring

  Changed 5 years ago by crschmidt

  • stage set to Needs More Work

testing.

  Changed 5 years ago by crschmidt

  • status changed from new to closed
  • resolution set to fixed

Done.

  Changed 5 years ago by elemoine

  • status changed from closed to reopened
  • resolution fixed deleted

Currently, State is set to Review by default when you create a ticket. We probably want to change this, don't we?

  Changed 5 years ago by crschmidt

I thought I had fixed this: Currently, the config is:

state = select state.label = State state.options = |Review|Needs More Work|Commit|Pullup|Complete|Needs Discussion state.order = 5 state.value = 0

Any suggestions on how I can make it not go to Review by default? I can't figure it out.

  Changed 5 years ago by crschmidt

state = select
state.label = State
state.options = |Review|Needs More Work|Commit|Pullup|Complete|Needs Discussion
state.order = 5
state.value = 0

  Changed 5 years ago by fredj

From TracTicketsCustomFields:

To make an entering an option for a select type field optional, specify a leading | in the fieldname.options option.

so the config should be:

state = select
state.label = State
state.options = Review|Needs More Work|Commit|Pullup|Complete|Needs Discussion|
state.order = 5
state.value = 5

  Changed 5 years ago by fredj

  • state set to Review

follow-up: ↓ 10   Changed 5 years ago by crschmidt

Wouldn't 'leading' be at the front, like I have it, rather than at the end, like you do?

in reply to: ↑ 9   Changed 5 years ago by fredj

Replying to crschmidt:

Wouldn't 'leading' be at the front, like I have it, rather than at the end, like you do?

specify a leading | at the end of the options works (tested in  http://trac.mapfish.org) and the "empty" option is the first in the select.

  Changed 5 years ago by crschmidt

  • status changed from reopened to closed
  • state changed from Review to Complete
  • resolution set to fixed

Weird. I call that a bug in the docs, but i've now implemented it, and it does (indeed) work. Thanks!

Note: See TracTickets for help on using tickets.