trello_cli
trello_cli copied to clipboard
Card urls and shorturls
Hey,
Love this utility. Very, very cool. I'm looking to use it to create a bit of plumbing between Jira and Trello. The trouble is I'm not getting enough data back. In particular I'd like to be able to consume the URL of the cards so I can use that in creation of my Jira Issues.
Any thoughts? I'm willing to give this a look myself, but a bit of direction and help would be required.
Kind regards,
- Matt
@MattSeen Thanks!
If I understand your use case correctly, you should just need to update the formatter with the data you'd like displayed.
https://github.com/brettweavnet/trello_cli/blob/master/lib/trello_cli/formatters/card_list.rb#L4-L15
You should be able to display anything returned by the trello gem.
https://github.com/jeremytregunna/ruby-trello/blob/master/lib/trello/card.rb#L39-L42
Let me know if this helps or if you have any other questions!
Ah, now I see. I was editing the formatter and using the names specified in the API. I was using the wrong names then.
I'll give that a go and tell you how I get on.
@brettweavnet So I gave that a quick look just now.
It seems the objects that are being iterated to list cards contents only have the properties name, id and desc present.
Is there something up with the request you are using to get the data? Should that be a card not a list?
@MattSeen Ah, sorry, it appears I do pull out the specific fields in the object in the command:
https://github.com/brettweavnet/trello_cli/blob/master/lib/trello_cli/cli/card/list.rb#L13-L15
You should be able to add the variables to that hash and then they will become available in the formatter. Let me know how that works!
Thanks
Excellent. I'll fork the repo and have a look at that tonight. Thanks for your help!