Created
April 25, 2023 08:21
-
-
Save TheNoim/6ad07b9fd8f2e9c76112ebc50b60bf52 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Name: jira | |
import "@johnlindquist/kit" | |
let id = await arg('Which id?') | |
if (!/SP-\d+/gmi.test(id)) { | |
id = `SP-${id}`; | |
} | |
if (/m(e)?(un?r?e?s?o?l?v?e?d?)/gmi.test(id)) { | |
$`open "https://artesa.atlassian.net/jira/software/projects/SP/boards/1/backlog?assignee=62bae564268cac6e31c3f432&customFilter=44dd5305-6fee-465c-bda5-669caa331c41"` | |
} else if (/m(e)?/gmi.test(id)) { | |
$`open https://artesa.atlassian.net/jira/software/projects/SP/boards/1/backlog?assignee=62bae564268cac6e31c3f432` | |
} else { | |
$`open https://artesa.atlassian.net/jira/software/projects/SP/boards/1/backlog?selectedIssue=${id.trim()}`; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment