Edgewall Software
Modify

Opened 10 years ago

Last modified 6 months ago

#217 new enhancement

XML-RPC/SOAP/etc. interface

Reported by: jon@… Owned by:
Priority: low Milestone: unscheduled
Component: general Version: 0.6
Severity: normal Keywords:
Cc: m@…, martin.marcher@…, lists@…, osimons
Release Notes:
API Changes:

Description

It would be kinda nice to have an interface for Trac that would allow people to develop things like allowing tickets to be reported from within an application.

Attachments (0)

Change History (26)

comment:1 Changed 10 years ago by rocky

Xml-rpc should be fairly easy to accomplish. Preferably we would support both xml-rpc and SOAP/WSDL. Unfortunately, it seems that WSDL for python at this point seems to be rather immature.

comment:2 Changed 10 years ago by cmontpetit@…

Is there progress on this issue?

Is there a way to programatically interact with the Trac system using REST for example?

comment:3 Changed 10 years ago by daniel

  • Milestone set to 0.9
  • Priority changed from normal to high

I think we should at least have a minimal web-services API for 1.0.

comment:4 Changed 10 years ago by daniel

  • Milestone changed from 0.9 to 2.0
  • Priority changed from high to low

This is part of the 2.0 redesign process as well.

comment:5 Changed 10 years ago by Steffen Pingel

I would welcome an rpc inferface very much as it would make it possible to implement an interface to the issue tracker in Eclipse (as a plugin).

comment:6 Changed 9 years ago by cmlenz

WikiRPC looks interesting as a generic XML-RPC based API for Wikis.

comment:7 Changed 9 years ago by mgood

  • Owner changed from jonas to mgood

This is something I'd like to look into.

comment:8 Changed 8 years ago by coderanger

Though still experimental, the XmlRpcPlugin? over at trac-hacks is probably a good starting point for this. WikiRPC is implemented already, and I'm sure the ticket system could be setup for RPC manipulation.

comment:9 Changed 8 years ago by anonymous

  • Resolution set to fixed
  • Status changed from new to closed

comment:10 Changed 8 years ago by Markus Tacker <m@…>

  • Cc m@… added
  • Resolution fixed deleted
  • Status changed from closed to reopened

Do not close tickets without a comment.

comment:11 Changed 8 years ago by athomas

The XmlRpcPlugin implements the WikiRPC API, thanks to mgood, and also exports an API for manipulating the ticket system. You can see the builtin methods here.

comment:12 Changed 8 years ago by anonymous

  • Type changed from defect to enhancement

comment:13 Changed 8 years ago by mgood

#3385 has been marked as a duplicate.

comment:14 Changed 7 years ago by anonymous

  • Cc martin.marcher@… added

comment:15 Changed 4 years ago by cboos

  • Milestone changed from 2.0 to unscheduled

Milestone 2.0 deleted

comment:16 Changed 4 years ago by pascal.seitz@…

Any progress here? I would be very interested in an API

comment:17 Changed 4 years ago by cboos

  • Milestone changed from triaging to unscheduled

No, it's still unscheduled, which means the members of TracTeam have currently no interest in implementing it themselves, but they're not opposed either to someone else's contributions on the topic, provided there's a good rationale for it and a good quality patch.

comment:18 Changed 4 years ago by cboos

  • Owner mgood deleted
  • Status changed from reopened to new

… and I suppose Matt is not really interested in the noise here either ;-)

comment:19 Changed 4 years ago by Thijs Triemstra <lists@…>

  • Cc lists@… added

The XML-RPC plugin now includes a pluggable API for extending protocols, and see for instance TracRpcProtocolsPlugin for more protocols.

comment:20 Changed 4 years ago by dean.poulin@…

it's amazing to see that as I could use this today, a ticket opened 7 years ago with no implementation is blocking me from simple interraction with Trac via web service. If you want an AWESOME example of the simple implementation of this please see: http://wiki.hudson-ci.org/display/HUDSON/Remote+access+API

comment:21 Changed 3 years ago by lkraav <leho@…>

i am not sure what @dean.poulin is talking about, as th:XmlRpcPlugin works more than fabulously. as a matter of fact, i'm not sure why this ticket is still open. perhaps th:XmlRpcPlugin could be brought into tracopt and be done with it or something?

comment:22 follow-up: Changed 3 years ago by dean.poulin@…

@lkraav - I'm just referring to the fact that people like simple APIs to program against, especially in the area of continuous integration/build process/release management. I run an API that gets millions of requests a day and if our API was complicated it wouldn't get used. Our team is specifically looking to trigger ticket resolutions via the build/release process.

I'm just recommending that Trac implement a simple API as Hudson has done (http://wiki.hudson-ci.org/display/HUDSON/Remote+access+API) which is accessible via basic RESTful URLs to access data and trigger actions in a programmable fashion.

I'm a very satisfied Trac user of 4 years. I was just surprised that in order to access Trac data I have to install a third party plug-in… XmlRpc?.

comment:23 Changed 3 years ago by uwe.keim@…

We are providing a small Trac interface within our Test Management tool Zeta Test.

If anyone is interested in the source code of the interface, just give me a quick note.

comment:24 Changed 2 years ago by osimons

  • Cc osimons added

comment:25 in reply to: ↑ 22 Changed 9 months ago by olemis

Replying to dean.poulin@…:

@lkraav - I'm just referring to the fact that people like simple APIs to program against, especially in the area of continuous integration/build process/release management. I run an API that gets millions of requests a day and if our API was complicated it wouldn't get used. Our team is specifically looking to trigger ticket resolutions via the build/release process.

There's a Jenkins plugin for Trac .

I'm just recommending that Trac implement a simple API as Hudson has done (http://wiki.hudson-ci.org/display/HUDSON/Remote+access+API) which is accessible via basic RESTful URLs to access data and trigger actions in a programmable fashion.

See trachacks:RestOnTracPlugin which is currently under development .

I'm a very satisfied Trac user of 4 years. I was just surprised that in order to access Trac data I have to install a third party plug-in… XmlRpc?.

Because Trac is a minimalistic approach to …

comment:26 Changed 8 months ago by anonymous

It doesn't look like the RestOnTracPlugin? is ever going to be completed.

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as new The ticket will remain with no owner.
as The resolution will be set. Next status will be 'closed'.
The owner will be changed from (none) to anonymous. Next status will be 'assigned'.
Author


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

 
Note: See TracTickets for help on using tickets.