Skip to main content

Trac JSON RPC plugin for ticket management

Project description

Contributors Issues MIT License


trac-ticketrpc

Trac plugin to handle JSON RPC requests for ticket creation, update and details.
Documentation

Report Bug · Request Feature

About The Project

The plugin is intended as an interface for software development tools which want to use Trac as an external bug tracker.
It allows to create a new Trac ticket, post comments for a ticket, read details of a ticket and close an existing ticket.
Project was triggered, because I wanted to use Trac from Kiwi test case management system.

Getting Started

Prerequisites

The plugin needs Python, version 3.7 or higher and Trac, version 1.6 or higher.

Installation

  1. Download Python wheel

  2. Install wheel into local Python installation used by your trac server with pip

  3. Enable plugin by adding the following in affected trac.ini files:

    [components]
    tracticketrpc.rpctickethandler.rpctickethandler = enabled

  4. Restart Trac server

JSON RPC API

All HTTP requests must be issued using method 'POST' and contain header attributes 'Content-type'='application/json' and 'Accept'='application/json'. The plugin supports the methods listed below.

  • Create new ticket

    method: 'ticket.create'
    mandatory parameter: 'summary', 'description', 'project'
    optional parameter: 'priority', 'version', 'component'
    result: 'id'=Trac ticket ID

  • Add ticket comment

    method: 'ticket.add_comment'
    mandatory parameter: 'id', 'text', 'project'
    result: 'id'=Trac ticket ID, 'cnum'=comment number

  • Close ticket

    method: 'ticket.close'
    mandatory parameter: 'id', 'resolution', 'project'
    optional parameter: 'text'
    result: 'id'=Trac ticket ID

  • Get ticket details

    method: 'ticket.details'
    mandatory parameter: 'id', 'project'
    result: 'summary', 'reporter', 'owner', 'description', 'type', 'status', 'priority',
    'milestone', 'component', 'version', 'keywords', 'cc', 'time', 'changetime'

  • Get ticket comments

    method: 'ticket.comments'
    mandatory parameter: 'id', 'project'
    result: 'id', 'comments'

Contributing

Any contributions are greatly appreciated.

License

Distributed under the MIT License. See LICENSE for more information.

Contact

Frank Sommer - Frank.Sommer@sherpa-software.de

Project Link: https://github.com/FrankSommer-64/trac-ticketrpc

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

trac_ticketrpc-0.9.1.tar.gz (7.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

trac_ticketrpc-0.9.1-py3-none-any.whl (9.2 kB view details)

Uploaded Python 3

File details

Details for the file trac_ticketrpc-0.9.1.tar.gz.

File metadata

  • Download URL: trac_ticketrpc-0.9.1.tar.gz
  • Upload date:
  • Size: 7.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for trac_ticketrpc-0.9.1.tar.gz
Algorithm Hash digest
SHA256 c001161a39c462b8d74108ba7fb9d081126c837d7e98f05c2d673ddcd0dacc23
MD5 2a5bdf56fddeace3d9e3823d958f02a4
BLAKE2b-256 32519912a9ced3f791c777fe45b9e58e851e681198c1f34e98d663605a8126bf

See more details on using hashes here.

File details

Details for the file trac_ticketrpc-0.9.1-py3-none-any.whl.

File metadata

  • Download URL: trac_ticketrpc-0.9.1-py3-none-any.whl
  • Upload date:
  • Size: 9.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for trac_ticketrpc-0.9.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8fae65e1f9fecd324231ac52596a875eedcea80dce875659257ef781c98a3181
MD5 2aabffefb47c3194b4533a50905d0803
BLAKE2b-256 e03c21a553eecf986dd7ec90bf2131e3191aba5a87ec71f73ffb75be63170bbb

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page