Created
February 25, 2024 10:06
-
-
Save Mosharush/7885dfa717e21e547b1895bbf219a4ad to your computer and use it in GitHub Desktop.
Bookmark: Conver JIRA Ticket to branch name
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
javascript: window._ticketDesc = document.querySelector('h1[data-testid="issue.views.issue-base.foundation.summary.heading"]').innerText.split('-')[0].trim().toLowerCase().replaceAll(' ', '-'); window._ticketId = document.querySelector('div[data-testid="issue.views.issue-base.foundation.breadcrumbs.breadcrumb-current-issue-container"]').innerText.toLowerCase(); alert(`${window._ticketId}/` + `${window._ticketDesc}`.replace(/(\-|\:)+$/mg, '').replace(/[\W_]+/mg, '-').substr(0,30)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment