On 12/5/2014 6:38 PM, John P. Rouillard wrote:
I guess the same question is once I have tickets in fossil, is there
an export mechanism of some sort in case I want to move to another
system?
If you build fossil with JSON support (./configure --json) then you can
use a ticket report to export one or all tickets in JSON format. Full
documentation of JSON mode is at [1]. You can use JSON from both HTTP
and the command line. To retrieve a complete run of ticket report 1 say:
fossil json report run 1
and find the JSON results on stdout.
[1]:
https://docs.google.com/document/d/1fXViveNhDbiXgCuE7QDXQOKeFzf2qNUkBEgiUvoqFN4/view
Other useful report related commands are:
fossil json report list
fossil json report get n
The first lists all the known reports, and the second gets all the
properties of a report.
Also interesting is the
fossil json query
command which will execute arbitrary SQL statements (best to stick to
SELECT unless you know what you are doing) on the repository and return
the results in JSON.
To use fossil json report run to retrieve all tickets, you will need to
make a ticket report that returns all fields without much formatting,
but that is easy to create.
--
Ross Berteig r...@cheshireeng.com
Cheshire Engineering Corp. http://www.CheshireEng.com/
_______________________________________________
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users