There's a Pivotal Tracker resource that does what you describe: https://github.com/concourse/tracker-resource