-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
22 lines (22 loc) · 1.01 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<!DOCTYPE html>
<html lang="en">
<head>
<title>Bookmarklet</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
<h1>Bookmarklets</h1>
<a href='
javascript:(()=>{const templates={Bug:`## Description of Bug
## URL
## Environment (OS/Browser)
## Steps to replicate
## Videos/Screenshots
##Console log`,Story:`## Goal of Feature
## User Story or Business Case
## Key Features
## Links to examples or mockups`};const issueType=document.evaluate(`//*[@id="issue-create.ui.modal.create-form.type-picker.issue-type-select"]/div/div[1]/div[1]/div/div[2]/div`,document,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue.innerText;if(issueType in templates){const descriptionBox=document.evaluate(`//*[@id="ak-editor-textarea"]/p`,document,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue;descriptionBox.innerText=templates[issueType]}})();
'>Templates for Jira Issue Types - WIP</a>
</body>
</html>