Show customfield IDs in Jira screen editor

This enhances the JIra screen editor by also showing the field IDs in addition to the name as the name is not required to be unique.

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name         Show customfield IDs in Jira screen editor
// @namespace    http://schuppentier.org/
// @version      1.0
// @description  This enhances the JIra screen editor by also showing the field IDs in addition to the name as the name is not required to be unique.
// @author       Dennis Stengele
// @match        https://*.atlassian.net/secure/admin/ConfigureFieldScreen.jspa*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=atlassian.net
// @require      https://bowercdn.net/c/arrive-2.4.1/minified/arrive.min.js
// @grant        none
// @license      MIT
// ==/UserScript==

(function() {
    'use strict';

    document.arrive("div#screen-editor tr.aui-restfultable-readonly", function() {
        const fieldId = this.getAttribute("data-id")
        const cell = this.querySelector("td.field-name-cell")
        const newValue = `${cell.textContent} (${fieldId})`
        cell.textContent = newValue
    })
})();