Fisheye links for jira

Add fisheye links to jira

Від 11.11.2015. Дивіться остання версія.

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

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

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

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

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

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

(У мене вже є менеджер скриптів, дайте мені встановити його!)

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.

(I already have a user style manager, let me install it!)

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