Re: [taskjuggler-users] Using TaskJuggler API from ruby

245 views
Skip to first unread message

Chris Schlaeger

unread,
Dec 7, 2012, 8:21:10 AM12/7/12
to taskjugg...@googlegroups.com
The examples are a good place to start looking. And then there is the source code documentation. http://www.taskjuggler.org/tj3/doc/

That's not perfect, I admit. You are welcome to use the class APIs, but please keep in mind that these class implementations can change at any time. I make absolutely no guarantees that internal APIs will not be changed. I consider all Ruby APIs internal that could be changed without notice.

Chris


On Fri, Dec 7, 2012 at 12:26 PM, Stefano Lampis <stefan...@gmail.com> wrote:
Hello, I've searched a little bit but I haven't found any mention to this.

So my problem is the following.

Our company would like to integrate TJ in an existing ruby application without having to generate a tjp file but accessing the TaskJuggler API directly.

We have not found any documentation about this, so we started reading the test cases and the source code but it would be great if someone could point us to some document or other useful resource to understand how the code works.

Any advice on "where to start" would be great too.

Thanks.

--
You received this message because you are subscribed to the "TaskJuggler Users" group.
To post to this group, send email to taskjugg...@googlegroups.com
To unsubscribe from this group, send email to
taskjuggler-us...@googlegroups.com
For more information about TaskJuggler visit http://www.taskjuggler.org
 
 

Christopher Mann

unread,
Dec 12, 2012, 12:30:36 PM12/12/12
to taskjugg...@googlegroups.com
When I programmed an interface for Redmine, I had to use the .tjp syntaxe, which worked fine. There were synchronisations and usage constraints to take into account. 

What are your use-cases?

Best regards,

Christopher

7 place de l'Eglise - 92260 FONTENAY AUX ROSES - FRANCE - (prox. Paris)



2012/12/7 Chris Schlaeger <ch...@linux.com>

Stefano Lampis

unread,
Dec 19, 2012, 3:18:16 AM12/19/12
to taskjugg...@googlegroups.com
A use case would be the following:

we have a project management tool that we built in-house where we can set up projects, assign tasks and so on.
We would like to use this information to instruct TaskJuggler and obtain some output more useful than the HTML generated report.

I know that TaskJuggler can export to different formats like XML but that would mean parsing the output to import data into the project management tool again.
Our intent is to work with ruby object instead.

If this is not possible, what about the opposite? Which solutions do I have to import TaskJuggler generated data inside my application?

Best regards

Chris Schlaeger

unread,
Dec 20, 2012, 2:30:00 PM12/20/12
to taskjugg...@googlegroups.com
I have no problem with other software directly using the internal APIs. They usually don't change much as you can see from the git history. But you will not get a guarantee that the internal APIs will not change. If I need to change something, I will no matter who is using it.

You can add tests to the TaskJuggler rspec test suite so I at least know about a potential problem.

Some of the classes are documented, but I fully agree that this can be much improved. Also keep in mind that many classes don't support removing of objects. You can only add objects.

Chris

Christopher Mann

unread,
Dec 21, 2012, 4:51:05 AM12/21/12
to taskjugg...@googlegroups.com
This might be a break-through for new Task-Juggler applications.

Chris, would you be able to provide infrastructure support for such efforts?

Many thanks,

Christopher

7 place de l'Eglise - 92260 FONTENAY-AUX-ROSES - FRANCE - (prox. Paris)


2012/12/20 Chris Schlaeger <ch...@linux.com>

Egon Kastelijn

unread,
Dec 19, 2012, 3:40:00 AM12/19/12
to taskjugg...@googlegroups.com

Hi,

I'm feeling free to add my use-case to the conversation:

At the moment we are using the TaskJuggler (2.4.3) XML report the way Stefano mentioned below.
We parse the XML and convert it into separate JSON documents (tasks, resources, bookings, etc), and upload these documents into a NoSQL CouchDB.
This enables other scripts/applications to query the planning-output in a very easy and fast way (with HTTP requests)

But: The XML parsing is an CPU-intensive process, so if a better alternative is available... ;)

kind regards,

   Egon
face-wink.png

Chris Schlaeger

unread,
Dec 22, 2012, 5:23:59 AM12/22/12
to taskjugg...@googlegroups.com

The infrastructure is already there. The users of internal classes just needs to add RSpec tests to the rspec directory that are good enough to detect API breakage.

Chris

Chris Schlaeger

unread,
Dec 22, 2012, 5:26:36 AM12/22/12
to taskjugg...@googlegroups.com

That sounds pretty complicated. It should be fairly simple to add JSON or NoSQL output format support to the TJExport report generator.

Chris

face-wink.png

Stefano Lampis

unread,
Jan 30, 2013, 5:56:34 AM1/30/13
to taskjugg...@googlegroups.com, ch...@linux.com
I agree with you Chris, and JSON support would be very helpful. Is this a planned task? If not, maybe we could implement this functionality.
Which class can I start looking at?

Rafik Naccache

unread,
Jan 30, 2013, 5:56:47 AM1/30/13
to taskjugg...@googlegroups.com, taskjugg...@googlegroups.com, ch...@linux.com
+1 for the json support,

This way it will help me with git tj integration that I'm planning to do ...

Regards
---
You received this message because you are subscribed to the Google Groups "TaskJuggler Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to taskjuggler-us...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Chris Schlaeger

unread,
Feb 16, 2013, 7:56:31 AM2/16/13
to Rafik Naccache, taskjugg...@googlegroups.com
You would need to add support for a new output format. The 'export' report is probably the most suitable one to use this. See report/Report.rb, report/TjpExport.rb as starting points.

Chris
Reply all
Reply to author
Forward
0 new messages