Created
September 13, 2016 17:58
-
-
Save xdg/a1f942847e45a3b4df13c125f45fbd3b to your computer and use it in GitHub Desktop.
Put a Jira ticket link on the clipboard to paste into Google docs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jiralink () { | |
if [ -z $1 ]; then | |
echo "usage: jiralink <ticket-id>" | |
else | |
local ticket | |
ticket="$1" | |
echo "<a href='https://jira.mongodb.org/browse/$ticket'>$ticket</a>" | textutil -stdin -format html -convert rtf -stdout | pbcopy | |
echo "Link to $ticket copied to clipboard" | |
fi | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment