Skip to content

Instantly share code, notes, and snippets.

@tomaszwostal
Forked from drkarl/.taskrc
Created May 30, 2019 07:23
Show Gist options
  • Save tomaszwostal/4e9a050278744e98921c2f025855544c to your computer and use it in GitHub Desktop.
Save tomaszwostal/4e9a050278744e98921c2f025855544c to your computer and use it in GitHub Desktop.
How to add Jira tasks to taskwarrior and open browser from command line
#Add to .taskrc
#New UDA jira
uda.jira.type=string
uda.jira.label=Jira
#Add the new UDA to any existing or new report, i.e. to the next report
report.next.columns=id,start.age,entry.age,depends,priority,project,tags,recur,scheduled.countdown,due.remaining,until.remaining,jira,description,urgency
report.next.labels=ID,Active,Age,Deps,P,Project,Tag,Recur,S,Due,Until,Jira,Description,Urg
#Add to .zshrc to open the jira on the browser
export JIRA_URL='http://jira.blah.com/browse/'
export OPEN_BROWSER=#cygstart for cygwin, open for macos, xdg-open or other for Linux
function jira(){
$OPEN_BROWSER $JIRA_URL`task _get "$1".jira`
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment