Custom display for Issuetype labels for epic's issues in navigator

A different Answers question showed how to display the issuetype of sub-tasks as a text label on the parent's issue detail page:

Is there a way I can do this on the issue detail page for an epic, so that I can see the issuetype text label for the issues associated with it?

1 answer

This widget could not be displayed.
function modifytext(){
    var elements = document.getElementById('greenhopper-epics-issue-web-panel').getElementsByClassName("nav issuetype");
    for(var i = 0, length = elements.length; i < length; i++) {
          if( elements[i].innerHTML.match(/img.*/)){
            var extractdata = elements[i].innerHTML;
            var regex = 'alt=\".*?\"';
            var alt = new String(extractdata.match(regex));
            var clean = alt.replace('alt="','');
            var issuetype = clean.replace('"','');
            elements[i].innerHTML = extractdata + ' ' + issuetype;
          }
    }
  }

modifytext()

That probably isn't the best way to do it, but that would be one way to get the name of the issue type to show up next to the icon for the epic view. You could add this javascript to the page using a custom field that only shows up for epics on the view screen.

I tried it and it works just fine. Depending on which JIRA version you are using, this would work fine for you too.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Apr 22, 2018 in Jira Software

How-to setup a secured Jira Software 7.9.0 on Ubuntu 16.04.4 in less than 30 minutes

...PermissionsStartOnly=true User=www-data Group=www-data ExecStart=/opt/jira/bin/startup.sh ExecStop=/opt/jira/bin/shutdown.sh TimeoutStartSec=120 TimeoutStopSec=600 PrivateTmp=true [Install] WantedBy...

1,492 views 10 12
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you