JIRA Bookmarklets

For those working with the JIRA's Issue Navigator. I find that I often want to highlight certain issues on my issue navigator without re-searching.

e.g. I'm looking at JIRA 3.3.3 bugs, but want to highlight bugs that are "Unassigned". I use a bookmarklet, little javascript snippets saved as a bookmark, like the one below.

A little bookmarklet to highlight rows!

javascript:(function(){var issuetable = document.getElementById("issuetable"); var trs = issuetable.getElementsByTagName("TR"); for(i=0;i<trs.length;i++) { if (trs[i].innerHTML.indexOf("Unassigned") != -1) trs[i].className = trs[i].className + ' rowHighlighted' }})()

Copy & paste this into a bookmark, click on the bookmark and all rows in the issue navigator with the text "Unassigned" will be highlighted.
I've also got similar ones set up for Unresolved issues. It looks a little something like this:

The script isn't 100% fool-proof and if you have "Unassigned" in the description field, it'll still be highlighted.

Perhaps someone out there might find it useful!

Canned responses

Similarly, if you find yourself often wanting to reply with the same text, you can automatically populate a field (here 'description') with the bookmarklet:

javascript:(function(){document.getElementById('description').value='This issue appears to be a bug...'})()

Labels

plugin plugin Delete
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.
  1. Oct 13, 2005

    Aggelos T. Paraskevopoulos says:

    Mark, I've tried this on both Firefox and IE6 and doesn't seem to work. Any sec...

    Mark,

    I've tried this on both Firefox and IE6 and doesn't seem to work. Any security settings preventing this from running, or something else?

    Cheers,
    Aggelos

    1. Nov 23, 2005

      Matthias Marschall says:

      I changed the className from ' rowHighlighted' to ' rowAlternateHighlighted'. No...

      I changed the className from ' rowHighlighted' to ' rowAlternateHighlighted'. Now it works for me.

      The problem seems to be that there is now "rowHighlighted" style in global.css or global-static.css (JIRA 3.3.1)

  2. Oct 13, 2005

    Mark Chaimungkalanont says:

    I've only tested this in FireFox 1.0.7 against JIRA 3.4-beta (jira.atlassian.com...

    I've only tested this in FireFox 1.0.7 against JIRA 3.4-beta (jira.atlassian.com) and it seems to work fine. You will also need to have the "Assignee" field visible on your issue navigator. Is it throwing up any javascript errors?

  3. Sep 26, 2007

    Ty Myrick says:

    I used this to make several different bookmarklets for severity, Closed, Need Mo...

    I used this to make several different bookmarklets for severity, Closed, Need More Information, Request Close, and Unconfirmed, but I had trouble with some others that would be helpful.  I could not make one for In Progress because that also highlighted Confirmed.  I made one for Confirmed, but it didn't highlight anything at all.  Verified Fixed also did not work.  Is there anyway to get these working?  And why did they not work?  Also, is there anyway to change the highlighting color?