A fluent Java 8 library to access the Pivotal Tracker API, initially created by OneSpot and released under the LGPL, now maintained by Ian Clarke.
PivotalTracker pivotalTracker = new PivotalTracker(PIVOTAL_API_TOKEN);
List<Story> stories = pivotalTracker.projects().id(PROJECT_ID)
.stories()
.withFields(owners, accepted_at, estimate)
.acceptedAfter(now().minus(2 * 30 * 24, HOURS))
.getAll();
stories.forEach((s) -> {
System.out.println(s.getName());
});
The library is far from complete, the API is perhaps only 10% supported so far, however it is probably the most useful 10%. Adding support for new parts of the API is very easy (see below), and pull requests will be most welcome.
This library is available via Gradle, Maven, SBT, Leiningen and compatible dependency management tools through the excellent JitPack:
Note that we follow the Semantic Versioning convention for version numbers.
Contributions to support more of the API are very welcome, the basic framework is fairly nice to build upon, and you should be able to get a good idea of how to extend the API with just a few minutes looking at the codebase.
- onespot.pivotal.api.resources - Java POJOs that map directly to resources in the Pivotal API
- onespot.pivotal.api.dao - Classes that correspond roughly to endpoints in the Pivotal API
- onespot.pivotal.rest - The REST machinery (uses Google Gson for POJO-JSON mapping)
Feel free to create pull requests, however it can be easy to overlook these notifications so you may also want to email me at pivotalpr [at] ian [dot] 33mail [dot] com to ensure I'm aware of it so I can review and merge promptly.