Edgewall Software
Modify

Opened 17 years ago

Closed 17 years ago

#4947 closed defect (duplicate)

Different argument list for newticket

Reported by: dean@… Owned by: Jonas Borgström
Priority: normal Milestone:
Component: ticket system Version: devel
Severity: normal Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

Starting in revision r4387, to get pre-filled fields you need to pass your arguments with a prefix of field_ so for example to send a type of defect you need to do /trac/newticket?field_type=defect instead of just ?type=defect. Sounds like an API change that might need to be fixed.

Attachments (0)

Change History (4)

comment:1 by Christian Boos, 17 years ago

Milestone: 0.11

Well, if we change it back, then we have to rename other parameters as well.

There's in particular version, that could be either the version field or the version of the ticket (we use a version parameter for identifying version of wiki pages as well).

Then, for custom field, you'd get the risk of a clash. Think about a custom field named format or action. Having them identified as field_… at least makes them unambiguous.

comment:2 by Eli Carter, 17 years ago

I'd rather see all the internal variables renamed to _something than change the end-user interface for pre-filling fields.

comment:3 by Christian Boos, 17 years ago

The dilemma comes mainly from version, which can also be seen as an end-user parameter, used also in the Wiki web_ui for example.

One possibility would be to rename version to revision for consistency with the versioncontrol web_ui (and keep backward compatibility with version in the wiki/web_ui).

We need at least to prefix the custom fields then. I'm not sure how future proof that will be, as with the GenericTrac approach, the distinction between custom and normal fields will probably go away. Using field_ would be more robust in this respect (or prop_ or another prefix, see also #5025).

comment:4 by Christian Boos, 17 years ago

Milestone: 0.11.1
Resolution: duplicate
Status: newclosed

See #5025 and in particular comment 4.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Jonas Borgström.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Jonas Borgström to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.