Email Notifications upon ticket creation from api?

imm's Avatar


23 Apr, 2009 09:44 PM

Is it possible to have everyone on the team notified when a ticket is created in a project via the api?


  1. 1 Posted by towski on 24 Apr, 2009 04:49 AM

    towski's Avatar

    Hey Brian, it's possible but not documented yet. Let us run some tests and get back to you.


  2. 2 Posted by Rick on 24 Apr, 2009 05:36 AM

    Rick's Avatar

    I did a little testing, and yes it is possible -- completely by accident. I've documented the api calls. However, the ActiveResource library that our ruby API uses is a little inflexible, so setting multiple watchers is a little more more difficult than it should be. The following is what the API will be once I deploy a minor tweak to make things easier. The notify-all attribute below will work fine, but multiple-watchers will be different. The deployment should happen either tomorrow or over the weekend.

    If you're using the ruby lighthouse api:

    # find or create ticket as you would normally
    # notify all eligible users
    ticket.notify_all = 1 
    # notify only these specific users
    ticket.multiple_watchers = "1,2,3"

    If you're using xml, here's what your ticket request would look like:

      <!-- notify all eligible users -->
      <!-- notify only these specific users -->
      <multiple-watchers>1, 2, 3</multiple-watchers>

    In JSON:

    {"ticket": {
      # notify all eligible users
      "notify_all": 1,
      # notify only these specific users
      "multiple_watchers": [1, 2]

    Eligible watchers include all project members except for the people already watching the ticket. If you try to add a user id from someone that's not part of the current project, the user_id will be silently ignored.

  3. 3 Posted by bburridg on 24 Apr, 2009 01:29 PM

    bburridg's Avatar

    That looks great and easy to use. Could you notify me when you do the deploy?

    Thanks, Brian

    On Fri, Apr 24, 2009 at 1:36 AM, Lighthouse Support < [email blocked]> wrote:

Discussions are closed to public comments.
If you need help with Lighthouse please start a new discussion.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac