Skip to content

Instantly share code, notes, and snippets.

openapi: 3.1.0
info:
title: Jira Universal Project Data Export
version: 2.1.0
description: Fetches Jira issues, project metadata, field definitions, statuses, and current sprint data dynamically.
servers:
- url: https://phase2tech.atlassian.net
paths:
@thagler
thagler / fetchJiraData.md
Created May 6, 2025 13:44
GPT Assistant Action: Fetch Jira Data - INSTRUCTIONS

Jira Integration Setup Instructions

Steps

  • Visit this Gist and copy the raw file. Paste this into the Schema field.
  • Edit the content in two places:
    • Replace PROJECT_KEY_HERE with the Jira key for your project.
  • Generate a password hash using your email address and Jira API key. You can do this one of two ways:
    • In Terminal, enter:
@thagler
thagler / fetchJiraData.json
Created May 6, 2025 13:34
GPT Assistant Action: Fetch Jira Data
{
"openapi": "3.1.0",
"x-meta": {
"projectId": "PROJECT_KEY_HERE",
"projectName": "AD Jira Data Export",
"projectSlug": "AD",
"jiraBaseUrl": "https://phase2tech.atlassian.net"
},
"info": {
"title": "Jira Data Export",
{
"openapi_spec_url": "https://gist.github.com/thagler/0bcd5c10001735d3d822e66308817ec4/raw/56bb920b9df93db63d3c70c548b0be56f9b5fb86/jira-export-api.yaml",
"auth": {
"type": "basic",
"username_label": "Jira Email",
"password_label": "Jira API Key"
},
"description_for_model": "Use this action to fetch Jira projects and issue types using your Jira email and API key.",
"schema_version": "v1"
}
openapi: 3.1.0
info:
title: Jira Export API
description: Accesses Jira projects and issue types using Basic Auth via email and API key.
version: 1.0.0
servers:
- url: https://phase2tech.atlassian.net
description: Jira Cloud
components:
securitySchemes:

1. Stop and remove all Docksal services

First, ensure that all running Docksal services are stopped:

fin stop

2. Remove the project’s containers and volumes

Next, remove the project’s containers and associated volumes:

@thagler
thagler / get_node_by_path.php
Created September 16, 2016 02:40
Drupal 8 Get node ID by path alias
<?php
$path = \Drupal::service('path.alias_manager')->getPathByAlias('/this-is-the-alias');
if(preg_match('/node\/(\d+)/', $path, $matches)) {
$node = \Drupal\node\Entity\Node::load($matches[1]);
}
@thagler
thagler / revert_commit.git
Created September 13, 2016 15:57
Remove the latest commit from a branch already pushed to origin
For a list of the most recent commits
`git log --pretty=oneline --abbrev-commit`
Go back 1 commit to remove
`git rebase -i HEAD~1`
replace ‘pick’ with ‘drop’ in that commit line and save (should be in vi)
`git push origin +my/branch-name`
Note: push +branch_name is like --force, but slightly less of a jerk about it
#!/bin/bash
#
# MySQL Backup Script
# VER. 2.5 - http://sourceforge.net/projects/automysqlbackup/
# Copyright (c) 2002-2003 [email protected]
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.