Skip to content

Instantly share code, notes, and snippets.

@phts
Last active September 25, 2023 16:37
Show Gist options
  • Save phts/7cfb50bf4db45255e7a07fd28e1ef1ed to your computer and use it in GitHub Desktop.
Save phts/7cfb50bf4db45255e7a07fd28e1ef1ed to your computer and use it in GitHub Desktop.
[Userscript] Jira: "Add comment" form above Activity panel
// ==UserScript==
// @name Jira: "Add comment" form above Activity panel
// @namespace https://github.com/phts/
// @version 0.0.2
// @description "Add comment" form above Activity panel on Jira issue page - convinient when sorting is set to "Newest first"
// @author Phil Tsaryk
// @match https://jira.willhillatlas.com/browse/*
// @grant none
// ==/UserScript==
;(function () {
document.querySelector('.aui-item.issue-main-column').appendChild(document.querySelector('#activitymodule'))
const css = `\
#issue-comment-add {
padding: 0 !important;
}`
const head = document.getElementsByTagName('head')[0]
const style = document.createElement('style')
head.appendChild(style)
style.appendChild(document.createTextNode(css))
})()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment