Fisheye links for jira

Add fisheye links to jira

Verze ze dne 11. 11. 2015. Zobrazit nejnovější verzi.

K instalaci tototo skriptu si budete muset nainstalovat rozšíření jako Tampermonkey, Greasemonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Userscripts.

You will need to install an extension such as Tampermonkey to install this script.

K instalaci tohoto skriptu si budete muset nainstalovat manažer uživatelských skriptů.

(Už mám manažer uživatelských skriptů, nechte mě ho nainstalovat!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Už mám manažer uživatelských stylů, nechte mě ho nainstalovat!)

// ==UserScript==
// @name         Fisheye links for jira
// @namespace    http://regretless.com/
// @version      0.1
// @description  Add fisheye links to jira
// @author       Ying Zhang
// @require      http://code.jquery.com/jquery-latest.js
// @match        https://jira.meredith.com/dt/browse/*
// @grant        none
// ==/UserScript==


// figure out the ticket number
$(document).ready(function() {
    var url = window.location.href.split("?")[0];
    var ticket = url.replace('https://jira.meredith.com/dt/browse/', '');
    
    $issueDetails = $('#issuedetails');

    var markup = '<li class="item full-width"> \
<div class="wrap" id="wrap-labels"> \
<strong class="name">Fisheye Links:</strong> \
<div class="labels-wrap value"> \
<a href="https://codereview.meredith.com/search/emktg/?tag=' + ticket + '&datesortorder=DESCENDING&groupby=changeset&col=path&col=revision&col=author&col=date&col=tags&refresh=y" target="_blank">Tagged</a> | \
<a href="https://codereview.meredith.com/search/emktg/?ql=select%20revisions%20from%20dir%20%22%2F%22%20where%20tagged%20' + ticket + '3%20and%20%28not%20tagged%20RFI%29%20order%20by%20date%20desc%20group%20by%20dir%20return%20path%2C%20tags" target="_blank">Missing RFI</a> | \
<a href="https://codereview.meredith.com/search/emktg/?ql=select%20revisions%20from%20dir%20%22%2F%22%20where%20tagged%20' + ticket + '3%20and%20%28not%20tagged%20RFT%29%20order%20by%20date%20desc%20group%20by%20dir%20return%20path%2C%20tags" target="_blank">Missing RFI</a> \
</div> \
</div> \
</li>';

    $issueDetails.append($(markup));
});