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
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
This is a fork from <a href="https://github.com/danlec/Trello-Bookmarklet">danlec/Trello-Bookmarklet</a> to add support for <a href="http://www.assembla.com">Assembla</a> tickets.

It adds a card with the name "#nn ticket_title" based on the current Assembla ticket (as modal popup or in full page mode)

```javascript
javascript:(function(a){window.trelloAppKey="optional";window.trelloIdList="optional";var b=a.createElement("script");b.src="https://raw.github.com/danlec/Trello-Bookmarklet/master/trello_bookmarklet.js";a.getElementsByTagName("head")[0].appendChild(b)})(document);
javascript:(function(a){window.trelloAppKey="optional";window.trelloIdList="optional";var b=a.createElement("script");b.src="https://raw.github.com/josemarcenaro/Trello-Bookmarklet/master/trello_bookmarklet.js";a.getElementsByTagName("head")[0].appendChild(b)})(document);
```

This is a <a href="http://en.wikipedia.org/wiki/Bookmarklet">bookmarklet</a> you can use to create a card in <a href="https://trello.com">Trello</a> from ...

- FogBugz cases
- JIRA issues
- GitHub issues and commits
- Assembla tickets
- The selected text from an arbitrary URL
- ... more? I'm happy to take pull requests that add support for other websites!

Expand All @@ -31,4 +36,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
5 changes: 5 additions & 0 deletions trello_bookmarklet.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@
// We're looking at a FogBugz case
name = goBug.ixBug + ": " + goBug.sTitle

} else if ($('span.ticket-number').length && $('div.ticket-summary h1').length){

// we're looking at an Assembla ticket
name = $('span.ticket-number').text().trim() + ' '+ $('div.ticket-summary h1').text().trim();

} else if ($("#issue_header_summary").length){

// We're looking at a JIRA case in an older JIRA installation
Expand Down