Skip to content

Instantly share code, notes, and snippets.

@fatbattk
fatbattk / jira_mass_unwatch.js
Last active September 7, 2017 16:16
Mass unwatch issues in JIRA from your browser.
// Unwatch all project issues for current logged in user.
// NOTE: There is a max 50 issue limit. Run multiple times to unwatch more.
// USAGE:
// - update vars below to target specific Project/Issue Status if desired.
// - log on to JIRA board on browser.
// - copy-paste entire code below into browser's dev console and run.
// - check found issues via console and confirm/cancel unwatching to finish.
(()=>{
const project = '', // (optional) enter the exact project name to limit (e.g.- DC).
@fatbattk
fatbattk / deleteCompletedReminders.js
Created February 10, 2021 23:27
Automate deleting completed iOS Reminders w/o confirmation prompt.
// NOTE: to be used with Scriptable + iOS Shortcuts.
// Using this skips reminder removal confirmation prompts.
// uncomment to debug. QuickLook.present(JSON.stringify(args.shortcutParameter));
// expects the Reminder List name.
const argsFirst =
typeof args.shortcutParameter === 'object'
? args.shortcutParameter[0]
: args.shortcutParameter;