Skip to content

Instantly share code, notes, and snippets.

@rkbodenner
Created November 29, 2011 17:50
Show Gist options
  • Save rkbodenner/1405704 to your computer and use it in GitHub Desktop.
Save rkbodenner/1405704 to your computer and use it in GitHub Desktop.
Go to Zendesk ticket from JIRA issue: A bookmarklet
// Opens a new tab that loads the Zendesk ticket referred to by the JIRA issue you're looking at.
// Specific to New Relic--that DOM ID is for our custom ZendeskID field in JIRA.
javascript:a=document.getElementById('customfield_10100-val');t=a.innerHTML;re=new%20RegExp(/([0-9]+)/);n=re.exec(t);if(n!=null){N=n[1];window.open('https://support.newrelic.com/tickets/'+N);}void%200
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment