issues listing reserves very little room for title

Create issue
Issue #2226 open
Roland Haas created an issue

The table of tickets https://bitbucket.org/einsteintoolkit/tickets/issues gives only very little room to ticket title, would be nice to be able to reserve more space. Bitbucket allows some customization https://developer.atlassian.com/blog/2016/02/6-secret-bitbucket-features/#customize-the-ui but no one on the call has experience how to do so. Google also finds https://bitbucket.org/site/master/issues/7139/customize-able-column-headers-on-issues and https://bitbucket.org/site/master/issues/11883/issues-list-is-unreadable-if-the-screen-is .

Comments (3)

  1. Roland Haas reporter

    I do not know how to make bitbucket edit its layout. However one can use this greasemonkey/tampermonkey script to disable columns:

    // ==UserScript==
    // @name         Bitbucket - Hide some issue columns
    // @namespace    http://www.einsteintoolkit.org
    // @version      0.1
    // @description  Hides some issue colums
    // @author       rhaas80
    // @match        https://bitbucket.org/einsteintoolkit/tickets/issues*
    // @grant        none
    // ==/UserScript==
    
    
    // a function that loads jQuery and calls a callback function when jQuery has finished loading
    function addJQuery(callback) {
      var script = document.createElement('script');
      script.setAttribute('src', '//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js');
      script.addEventListener('load', function() {
        var script = document.createElement('script');
        script.textContent = 'window.jQ=jQuery.noConflict(true);(' + callback.toString() + ')();';
        document.body.appendChild(script);
      }, false);
      document.body.appendChild(script);
    }
    
    
    
    // the guts of this userscript
    function main() {
        // jQ replaces $ to avoid conflicts.
    
        ["icon-col", "votes", "user", "milestone", "version"].forEach(column => {
          jQ("th."+column).css({'display': 'none'});
          jQ("td."+column).css({'display': 'none'});
        });
        // the component button
        jQ("div.issue-list--meta").css({'display': 'none'});
    
    }
    
    // load jQuery and execute the main function
    addJQuery(main);
    

    which hides most columns except the title, status, created at and updated at columns.

  2. Roland Haas reporter
    • changed status to open

    Confirmed to happen. Not sure how to go about fixing it. The plugins listed above only add a new page to the bitbucket buttons but seem unable to modify bitbucket provided web-content.

  3. Log in to comment