forked from danlec: likely going to break a bunch of shit to get it to do what I want.
this solved a specific problem I had at a previous job, you should use the repo this is forked from not this
Create a bookmark in your browser of choice (I've only tested safari), and copypasta the javascript below into it.
javascript:(function(a){window.trelloAppKey="optional";window.trelloIdList="optional";var b=a.createElement("script");b.src="https://raw.github.com/sixty4k/Trello-Bookmarklet/master/trello_bookmarklet.js";a.getElementsByTagName("head")[0].appendChild(b)})(document);
This is a bookmarklet you can use to create a card in Trello from ...
- FogBugz cases
- JIRA issues
- GitHub issues and commits
- The selected text from an arbitrary URL
- ... more? I'm happy to take pull requests that add support for other websites!
The first time you run it on a site, it will walk you through a simple setup:
- Input your API Key (which you can get at https://trello.com/1/appKey/generate)
- Authorize the site to interact with Trello
- Select the list that you'd like the bookmarklet to add cards too
You'll only need to go through those steps once per domain; from then on, you should be able to send your issues/cases/whatever directly to Trello in a single click.
The card created in Trello will
- attempt to use the name of the FogBugz/JIRA/GitHub/etc case
- include a link to the case in the card description
- (optionally) include any selected text in the description
If you modify the unminified bookmarklet, you can re-build it by running the source through a javascript minifier
(e.g. the Closure Compiler),
and prepending javascript:
to the front.
If you'd rather not add your appKey and idList for every new domain, you can modify the bookmarklet and include values for window.trelloAppKey
and window.trelloIdList
(currently both have the value "optional"
)
Note: This basic concept originated with https://github.com/markdrago/cardorizer; this approach doesn't require you to run a server