Skip to content

Instantly share code, notes, and snippets.

View jakeisonline's full-sized avatar
👋

Jake Holman jakeisonline

👋
View GitHub Profile
@jakeisonline
jakeisonline / jira-copy-stories.js
Last active May 1, 2019 22:28
Outputs selected story URLs and their titles to the JS console for easy copy and paste
var stories = 'Selected stories: \n\n';
jQuery("#ghx-content-group .ghx-selected")
.each(function(i, elem) {
var href = jQuery(elem).find(".ghx-end a").prop('href'),
title = jQuery(elem).find(".ghx-summary").text(),
type = jQuery(elem).find(".ghx-type").prop('title');
stories += '[' + type + '] ' + title + "\n" + href + "\n\n";
});
@jakeisonline
jakeisonline / app.js
Created April 23, 2012 22:50
[Zendesk] Snippets for Lotus landing Page
(function() {
return ZendeskApps.defineApp(ZendeskApps.Site.TICKET_PROPERTIES, {
appID: '/apps/01-highrise/versions/1.0.0',
name: 'Highrise',
defaultSheet: 'loading',
dependencies: {
currentTicketID: 'workspace.ticket.id',
@jakeisonline
jakeisonline / comment_permalink.js
Created June 1, 2011 16:23
[Zendesk] Adds a permalink to all Zendesk comments, and scrolls to them when linked to
@jakeisonline
jakeisonline / createAndDestroyOrganizations.js
Last active August 29, 2015 14:10
CREATE MANY ORGANIZATIONS & ORGANIZATION MEMBERSHIPS, THEN REMOVE THEM
/*
# CREATE MANY ORGANIZATIONS & ORGANIZATION MEMBERSHIPS, THEN REMOVE THEM
Copy and paste this entire snippet into your browser's JS console, while within
/agent and authenticated as an admin. Account must have multi-org feature.
jQuery is required, because lazy.
USAGE: createManyOrgsAndMemberships(userId, numOrganizations, orgNamePrefix)
@jakeisonline
jakeisonline / gist:50de1f15c7470be5acf5
Created November 10, 2014 16:52
Outputs selected drop URLs
var drops = 'Selected drops: \n\n';
$("#recent-drops #listing li section input:checked")
.each(function(i, elem) {
var href = $(elem).parent().parent().find(".type a").prop('href');
drops += href + "\n";
});
console.log(drops);