Fisheye links for jira

Add fisheye links to jira

Versione datata 11/11/2015. Vedi la nuova versione l'ultima versione.

Dovrai installare un'estensione come Tampermonkey, Greasemonkey o Violentmonkey per installare questo script.

Dovrai installare un'estensione come Tampermonkey o Violentmonkey per installare questo script.

Dovrai installare un'estensione come Tampermonkey o Violentmonkey per installare questo script.

Dovrai installare un'estensione come Tampermonkey o Userscripts per installare questo script.

Dovrai installare un'estensione come ad esempio Tampermonkey per installare questo script.

Dovrai installare un gestore di script utente per installare questo script.

(Ho già un gestore di script utente, lasciamelo installare!)

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

(Ho già un gestore di stile utente, lasciamelo installare!)

// ==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));
});