Project name in tab title

Hi,

is it possible to display project name (or just it's ID) in browser's tab name?

Issues are displaying it's Summary and it helps to find the proper, opened previously, but the projects display only “Project” without any details.

I'm working simultaneously on several projects and it would be useful having this feature.

0
2 comments
Official comment

Hi Adam! Thanks for spotting this issue. It's already reported in our tracker: JT-52780. We'll see if we can add it to the upcoming project page redesign. Feel free to vote for this issue and subscribe to stay updated.

You can do this locally in Browser by e.g. using a Tampermonkey user script like this for ID:


// ==UserScript==
// @name        Youtrack: Write TicketID in Title
// @grant       none
// @version     1.0
// @author      XXX

// ==/UserScript==
(function() {
   'use strict';
   const regex = /issue\/(.+?)(?:\/|$)/g;
 
   let oldTitle = '';
   const timeout = setInterval(function() {
     const newTitle = document.title;
     if (oldTitle != newTitle) {
       const location = document.location.pathname;
       const matcher = location.match(regex);
       const matches = [...location.matchAll(regex)];
       for (const match of matches) {
         if (match) {
           document.title = match[1] + ' | ' + document.title;
           oldTitle = document.title;
         }
       }
     }
   }, 1000);
 })();

0

Please sign in to leave a comment.