Created: 2008-05-02 00:22
Updated: 2018-03-24 16:18
License: mit


Lighthouse Digest

Use this with launchd to create digest emails for Lighthouse tickets. Example uses:

  • Send a summary of stale tickets to members on your team every week.
  • Get daily summaries of tickets created that day
  • Get daily summaries of tickets closed that day

# Set basic Lighthouse info
# Your lighthouse account name
Lighthouse.account = "activereload"

# Your API Key for this particular project
Lighthouse.token = "YOUR TOKEN" do |digest|
  digest.project_id = 44 # Lighthouse project id
  digest.from = "" # optional
  digest.query = "state:open updated:'three weeks ago - two weeks ago'" # Any valid Lighthouse search
  digest.emails = "," # Who to send this digest too

Here is a typical launchd script to email you once a week. Place this in ~/Library/LaunchAgents/com.lighthouseapp.project.digest.

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "">
<plist version="1.0">

Load it

launchctl load ~/Library/LaunchAgents/com.lighthouseapp.PROJECT.digest

Test it using the label you give it in the plist

launchctl start com.lighthouseapp.PROJECT.digest

Stopping it

If you want to stop this script for good, unload it:

launchctl unload ~/Library/LaunchAgents/com.lighthouseapp.PROJECT.digest
Cookies help us deliver our services. By using our services, you agree to our use of cookies Learn more