Skip to content
Browse files

add support for parsing a trello card

this means you can easily copy a trello card from one board to another
  • Loading branch information...
1 parent 840aab2 commit 72ca88bbb6f928786fcdaec0b17264720f38f0fc @markdrago markdrago committed
Showing with 14 additions and 0 deletions.
  1. +1 −0 README.md
  2. +13 −0 bookmarklet/cardorizer.js
View
1 README.md
@@ -7,6 +7,7 @@ For example, at my company we use JIRA to hold user stories, bugs, etc. I would
* JIRA
* Github Issues
* FogBugz
+* Trello (copy card from one board to another)
* _Contributions of support for new services are very welcome!_
## Setup
View
13 bookmarklet/cardorizer.js
@@ -90,5 +90,18 @@ var sources = [
var card_name = bug.ixBug + ": " + bug.sTitle;
return { name: card_name, description: location.href };
}
+ },
+
+ //trello card
+ {
+ identify: function() {
+ //make sure the details of a card are being shown
+ return (location.pathname.substring(0, 6) == "/card/");
+ },
+
+ parse: function() {
+ var card_name = $('.card-detail-title .window-title-text').text();
+ return { name: card_name, description: location.href };
+ }
}
];

0 comments on commit 72ca88b

Please sign in to comment.
Something went wrong with that request. Please try again.