On Thursday, November 26, 2015 at 3:04:00 AM UTC-8, Roger Oberholtzer wrote:
>
> I think this has been discussed in various contexts, but I cannot say 
> I am clear on the best approach: 
>
> When a ticket is created, I would like to initialize a field to 
> something that contains the ticket id number. Of course this value 
> does not exist until the user completes the initial stuff and decides 
> to create the ticket. That is ok. I would be happy if I could set the 
> field value automatically when it is empty, so that if the user did 
> put something there, it would remain. In fact, I could be satisfied if 
> this were done throughout the like of the ticket. But having it happen 
> when the user selects to create the ticket is fine too. 
>
> Have I missed a plugin that might accomplish this? If not, where would 
> I look to add such a thing? Are there any hooks that might allow such 
> an extension? The requirement is that it be automatic. The user should 
> not need to do anything to get this field initialized. 
>
> All constructive suggestions welcome! 
>

You could write a simple plugin that implements ITicketManipulator. 
Examples can be found in the documentation:

http://trac.edgewall.org/wiki/TracDev/PluginDevelopment/ExtensionPoints/trac.ticket.api.ITicketManipulator

- Ryan 

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to