Trac Automated Ticket Creation

102 views
Skip to first unread message

Jaxxa

unread,
Apr 16, 2012, 10:36:09 PM4/16/12
to trac-...@googlegroups.com
Hi,

I am fairly new to Trac and have taken over the managment of an Trac 0.12 instalation in a windows system.
What I want to do is to be able to automatically create tickets from with in a program in responce to certainconditions being met, e.g. alerting people when there is a error or somthing has to be checked.

There is some code from the person who was doing this job before me usign wget, and as I understand it pretending to be a web browser.
Is there a better way to acomplish this rather than fixing up that code?

I had a look at http://trac.edgewall.org/wiki/Clients and some of those look like they may be appliciable to what I want to do.
Just wondering how owuld be best to proceed.

Joshua.

RjOllos

unread,
Apr 17, 2012, 11:20:04 AM4/17/12
to Trac Users


On Apr 16, 7:36 pm, Jaxxa <jaxx...@gmail.com> wrote:
> There is some code from the person who was doing this job before me usign
> wget, and as I understand it pretending to be a web browser.
> Is there a better way to acomplish this rather than fixing up that code?
>
> I had a look athttp://trac.edgewall.org/wiki/Clientsand sme of those
> look like they may be appliciable to what I want to do.
> Just wondering how owuld be best to proceed.

You probably want to use the xmlrpc interface to create the ticket
from a script written in python or another language. There is support
for xmlrpc in several languages.

trac-hacks.org/wiki/XmlRpcPlugin

Jaxxa

unread,
Apr 24, 2012, 12:39:14 AM4/24/12
to trac-...@googlegroups.com


Thanks for the advice. That looks like it should be able to do what I want.
Currently I am trying using Ruby with trac4r.

One issue that I have run into is setting the value of custom fields in tickets.

If anyone has any advice / examples of how to do this is would be greatly appreciated.
Also is this supported by XMLRPC itself?
Just trying to figure out if this is an issue with the underlying plug-in, or the client library that I am using(or my use of it).


Joshua Woodward-Clarke

unread,
May 15, 2012, 10:18:30 PM5/15/12
to trac-...@googlegroups.com

Looks like It does support it easily.
The problem was that i was trying to acess it by using the description on the web interface of Trac, Where I needed the name from trac.ini , that was slightly diferant.

Joshua
Reply all
Reply to author
Forward
0 new messages