NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript== // @name Jira Go to Bamboo // @namespace http://tampermonkey.net/ // @version 1.0 // @description This script is written to allow easy moving to Bamboo deployment flow // @author Wieslaw Mosakowski // @updateURL https://openuserjs.org/meta/wmosakowskicraft/Jira_Go_to_Bamboo.meta.js // @match https://jira.atlassian.com/browse/* // @match http://jira.intranet.roche.com/jira/browse/* // @match http://jira.intranet.roche.com/jira/projects/MEDINF/issues/* // ==/UserScript== $(document).ajaxComplete(function() { if(!$('#bambooLink').next().length) { $('#bambooLink').remove(); $('.toolbar-split-left').append("<button id='bambooLink' class='aui-button aui-button-secondary aui-style'>Go to Bamboo</button>"); $("#bambooLink").click(function(){ window.open('http://bamboo.intranet.roche.com/bamboo/chain/viewChain.action?planKey=MIATLAS-MASTERDEVINTDEPLOYSOURCESSVNTOSANDBOX'); }); $('#latestBuild').remove(); $('.toolbar-split-left').append("<button id='latestBuild' class='aui-button aui-button-secondary aui-style'>Latest Build</button>"); $("#latestBuild").click(function(){ window.open('http://bamboo.intranet.roche.com/bamboo/browse/MIATLAS-MASTERDEVINTDEPLOYSOURCESSVNTOSANDBOX/latest/log'); }); } }); (function() { 'use strict'; })();