How do I find tags via the API?

peeja's Avatar

peeja

19 Dec, 2008 04:29 PM

We tag resolved tickets with the version number of their release. Using the API and the Ruby gem, I'd like to generate a poor man's release notes from the tagged tickets. The problem is that I don't know all of the release tags to search for. If I could get a list of all the tags, I could find them by Regexp, but I don't see a way to do this short of fetching all the tickets (which is clearly not ideal). :)

Am I missing a way to do this? Or should I be asking for that list to be available?

  1. 1 Posted by rick on 19 Dec, 2008 06:43 PM

    rick's Avatar

    Interesting. No, we don't have a tag API, but I can probably whip one up.

  2. 2 Posted by System on 19 Dec, 2008 07:34 PM

    System's Avatar

    This discussion was assigned to rick, on ticket 83.

  3. 3 Posted by peeja on 07 Jan, 2009 04:08 PM

    peeja's Avatar

    Not to nag, just curious: any progress on this?

  4. 4 Posted by Will Duncan on 07 Jan, 2009 04:44 PM

    Will Duncan's Avatar

    peeja -- not yet, we've been pretty busy, but I'll see if we can't squeeze it into development mid next week once we have the http://tenderapp.com launch smoothed out.

  5. 5 Posted by peeja on 07 Jan, 2009 04:53 PM

    peeja's Avatar

    Awesome, thanks. Best of luck and an early congratulations on Tender! It's pretty darn sweet.

  6. 6 Posted by rick on 07 Jan, 2009 09:01 PM

    rick's Avatar

    Oh man, I forgot to update this! I fail at tickets, especially over the holidays.

    curl http://activereload.lighthouseapp.com/projects/44/tags.json

    I've got a new ruby client lib in the works that'll support this. If you have issues, I can add this to the current lib really quick though.

  7. 7 Posted by peeja on 08 Jan, 2009 07:56 PM

    peeja's Avatar

    @rick: Cool! If you could add that to the current lib, that would be really helpful.

  8. 8 Posted by Rick on 08 Jan, 2009 09:10 PM

    Rick's Avatar

    Pushed to http://github.com/Caged/lighthouse-api/tree/master

    Lighthouse.account = 'activereload'
    Lighthouse.token = '...'
    p = Lighthouse::Project.find 44
    tag = p.tags.first
    puts tag.tickets.map { |t| "##{t.number} #{t.title}" }
    
  9. Rick closed this discussion on 08 Jan, 2009 09:10 PM.

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

Keyboard shortcuts

Generic

? 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