Gadget Title/lable/Headline???

Mikkel Kragelund Nielsen
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 25, 2012

Hey

Anyone know if (and how) its possible to add a title to a spefic gadget or section of gadgets on a dashboard/wallboard

I have to display a wallboard, with 2 identical gadgets (Column order gadget), and it would be nice to hade a header descriping what is shown below.

13 answers

1 accepted

3 votes
Answer accepted
AlanR December 13, 2012

We use the gadget "Text" above the gadget that needs a title.

The text gadget has to be enabled via System Plugin with the name "Atlassian JIRA - Plugins - Gadgets Plugin"

2 votes
Jonas Thyregod
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 23, 2016

Instead of using the Text Plugin from Atlassian to add an extra header above the existing plugin titles - I've used it to embed some javascript to correct the title of the existing gadgets. It seems to work and looks great!

Steps to reproduce:

  • Enable the Atlassian Text Plugin (it is not enabled by default, because of security)
  • Add the Text gadget to the dashboard where you wan´t custom titles for our gadgets  
    • Usually I add the gadget to the bottom of the dashboard in a collapsed state (so the users don´t notice it so much)
  • In the Body field type the javascript given below
    • Make sure to edit the "gadget_titles" variable with the ids of your gadgets and wanted custom titles (use firebug etc. to find the gadget id's) 
<script type="text/javascript">


var gadget_titles = [
  { 
    id : "gadget-10200-title",
     title : "My new title 1"
   },
  {
    id : "gadget-10205-title",
    title: "My new title 2"
  }
  // Add gadget ids and titles here 
]
// Go through all the defined titles
gadget_titles.forEach(function(item, index) {
  // Get the title gadget element from the DOM:
  var element = parent.document.getElementById(item.id);
  if (element) {
    // Change the title
    element.textContent = item.title;
  }
})
</script>

 

 

 

Joseph Flynn
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 19, 2016

Wow, great but looks dangerous as others here are pointing out.  Works great for my use-case.

Kevin Foutz
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 10, 2017

This works great! But when I refresh the browser page the title reverts back and the script doesn't run until I go back into the Text gadget and hit save. Any way to fix that?

Jonas Thyregod
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 12, 2017

Well I had the same problem. It happens because some JIRA script loads afterwards and overwriting the custom headers (set by my script). I fixed this by adding a delay to the script, but this is not guarantied to work for everybody everywhere (it will only work in IE9 or above).
Maybe I could come up with a more bullet prof solution, but for now it works fine for us.

 

<script type="text/javascript">

var gadget_titles = [
  {
    id : "gadget-10200-title",
     title : "My new title 1"
   },
  {
    id : "gadget-10205-title",
    title: "My new title 2"
  }
  // Add gadget ids and titles here
]
 
// Wait for page DOM is loaded and the set the headers
document.addEventListener("DOMContentLoaded", function(event) { 
  // Extra delay is needed (another jira-script is overwriting the headers)
  window.setTimeout(initMyHeaders, 700);
});
 
function initMyHeaders() {
  // Go through all the defined titles
  gadget_titles.forEach(function(item, index) {
    // Get the title gadget element from the DOM:
    var element = parent.document.getElementById(item.id);
    if (element) {
      // Change the title
      element.textContent = item.title;
    }
  });
}
</script>
Like Vincenzo Parrello likes this
Kevin Foutz
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 13, 2017

Thank you! That worked while using a Chrome browser as well. 

Filip Pokorny February 5, 2020

This works for dashboard, but not for wallboard in Jira 8.5. object "gadget-xxxxx-title" is not present in this view.

1 vote
AlanR January 12, 2014

How to enable the "Text" gadget in Jira 6:

  • Go to Administraion section: Add-ons > Manage add-ons
  • Select 'System' from the drop down Add-on filter menu (it is next to the field 'Filter visible add-ons')
  • Open the section with name "Atlassian JIRA - Plugins - Gadgets Plugin"
  • Enable all 64 modules or scroll down the list until you find the module called "Text" and enable this one.
1 vote
AlanR April 9, 2013

Via JIRA 'Administration', tab 'Plugins', click on 'Show system plugins'.

I this section we have "Atlassian JIRA - Plugins - Gadgets Plugin". (I don't remember explicitly installing this - but that is possible ;-) )

One of the 48 modules that comes with this plugin is "Text (text gadget)" and this module has to be enabled.

(We use JIRA version 4.4.4.)

0 votes
Kirk August 24, 2021

I was working with some Wallboards and they did not seem to display the name of the Gadget in the wallboard, but they did show in the Dashboard.  A trick I used to get the name to show up at the top of the Wallboard item is to click the ... then Rename in the Gadget on the Dashboard, then add a space at the end of the name and then check the checkmark.  When you run it in wallboard, the name shows up!

0 votes
Monika Antos October 20, 2017

New feature was released in July, where dashboard gadgets can now be renamed in JIRA. Just hover on the gadget's title bar and select the more (…) button. Then, choose Rename.

Holger Dietl
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 3, 2018

Hi Monika,

since which Jira version is this feature available?

We are on version 7.6 - Server and this option not visible.

Hassan Hashmi February 11, 2019

I am using version 7.12.1 and I do not see this feature either. 

Stefan Nahr February 21, 2019

Hi Monika, looks like you're using JIRA Cloud, because this feature still isn't available in JIRA Server.

All others interested in this feature, please vote:

 https://jira.atlassian.com/browse/JRASERVER-19766

Daniel Schütz
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 27, 2019

Hello Monika,

we are using Jira Cloud and the renaming of gadgets works fine. However, the names (neither the original ones nor the renamed ones) are displayed in the wallboard mode. This is what is my problem atm.

 

Thanks in advance

Daniel

Johnny Hermann July 7, 2023

This is broken now.  Most of the time (not always), when you select "Rename", the gadget title flickers briefly, as though intending to switch to edit mode, but instantaneously switches back to read-only mode.  Happens in both Safari and Firefox.

0 votes
Eunice Mora January 21, 2016

"The text gadget can make JIRA vulnerable to XSS attacks because it allows arbitrary html, which is why it is disabled by default".

Replacement has been requested to Atlassian. No commitment from Atlassian...though
https://jira.atlassian.com/browse/JRA-21965

0 votes
Greg Polumbo
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 19, 2014

It looks like the Text gadget works well for adding a title to a group of gadgets.  However, changing the title of a single gadget appears to be an issue that has been open for quite some time.  It seems like an easy enough thing to fix.  Go vote for it!

https://jira.atlassian.com/browse/JRA-19766

0 votes
Jeffrey G Cowell
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 3, 2014

If Text is itself a gadget, then the new title would appear above the default title block in the wallboard so if I create the Text Gadget "My Burndown", then the default "Agile Sprint Burndown Gadget" would still appear. What I am looking for is a way to replace the default text.

Nicolas Michaud
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 30, 2014

Same thing here.

0 votes
HyperVelocity Sales January 7, 2014

Yeah... where is this?

0 votes
HyperVelocity Sales January 7, 2014

Yeah... where is this?

0 votes
Andre V.
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 21, 2013

Thanks, Alan! This is exactly what I was looking for! I just ask myself why such a helpful Gadget is disabled by default? (Jira 5.2.9)

0 votes
Jo Rhett April 9, 2013

Where is the Text Gadget to be found? It's not a stock gadget.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events