Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ This is a <a href="http://en.wikipedia.org/wiki/Bookmarklet">bookmarklet</a> you
- FogBugz cases
- JIRA issues
- GitHub issues and commits
- Drupal.org issues
- The selected text from an arbitrary URL
- ... more? I'm happy to take pull requests that add support for other websites!

Expand All @@ -21,7 +22,7 @@ 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
- attempt to use the name of the FogBugz/JIRA/GitHub/Drupal/etc case
- include a link to the case in the card description
- (optionally) include any selected text in the description

Expand All @@ -31,4 +32,4 @@ 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
**Note:** This basic concept originated with https://github.com/markdrago/cardorizer; this approach doesn't require you to run a server
6 changes: 6 additions & 0 deletions trello_bookmarklet.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,12 @@
// We're looking at a GitHub commit
name = $(".js-current-repository").text().trim() + ": " + $(".commit .commit-title").text().trim();

} else if ($("#block-project-issue-issue-metadata").length) {

// We're looking at a Drupal.org issue
name = "[" + $(".field-name-field-project .field-item").text().trim() + "] " + $("#page-subtitle").text().trim();
desc = "Issue: " + location.href;

} else if (jQuery('head meta[content=Redmine]').length) {

// We're looking at a redmine issue
Expand Down