Why is Fix Version description not displayed?

In the JIRA field Fix Version, we have versions for multiple release types (Base, Custom, et al). I have added the release type in the Description fields for all Versions. I require the description to show in render dropdown on UI so people don't pick the wrong one for version overlaps (15.0 versus 15.0.0). Renderer only shows the number, not an associated description. Why does this not occur?

 

Running JIRA 5.04 (plans to upgrade to 5.1 within the next three months).

2 answers

0 vote

Did you update the description in the correct field configuration?

@Jobin Kuruvilla [Go2Group] , yes - edited descriptions for the fix versions on Versions tab in applicable project for which I'm trying to get them to show.

(Just so we're clear - the description to be shown is not the FIELD "Fix Versions" but the descriptions for individual fix versions themselves)

Ah ok. There is no option to show the version description in the dropdown. It only shows the name. You can probably do it with the help of some javascript programming.

I've tested this through the terminal and worked. It needs to be placed somewhere in the view issue https://answers.atlassian.com/questions/131271

(function() {
    var versions = {};
    if (AJS.Meta.get("issue-key")) {
        jQuery.get('/rest/api/2/project/' + AJS.Meta.get("issue-key").split("-")[0] + '/versions', function(json) {
            for (var i in json) {
                versions[json[i].id] = json[i].description;
            }
        }).then(function() {
            console.log("Versions", versions);
            console.log("Overwriting AJS.List.prototype._renders.suggestion");
            AJS.List.prototype._renders.suggestion = function(descriptor, replacementText) {
                //adding the label as a class for testing.
                var idSuffix = descriptor.fieldText() || descriptor.label();
                var itemId = AJS.escapeHTML(AJS.$.trim(idSuffix.toLowerCase()).replace(/[\s\.]+/g, "-")),
                    listElem = AJS.$('<li class="aui-list-item aui-list-item-li-' + itemId + '"><a class="aui-list-item-link"/></li>'),
                    linkElem = listElem.children();
                if (descriptor.selected()) {
                    listElem.addClass("aui-checked");
                }
                if (this.options.hasLinks) {
                    linkElem.attr("href", descriptor.href() || "#");
                }
                if (descriptor.styleClass()) {
                    linkElem.addClass(descriptor.styleClass());
                }
                if (replacementText) {
                    linkElem.html(replacementText);
                } else if (descriptor.html()) {
                    linkElem.html(descriptor.html());
                } else {
                    linkElem.text(descriptor.label());
                }
                if (descriptor.labelSuffix()) {
                    var suffixSpan = AJS.$("<span class='aui-item-suffix' />").text(descriptor.labelSuffix());
                    linkElem.append(suffixSpan);
                }
                if (descriptor.icon() && descriptor.icon() !== "none") {
                    var icon = AJS.$('<img class="icon"  alt="" />');
                    icon.attr("src", descriptor.icon());
                    linkElem.addClass("aui-iconised-link").prepend(icon);
                }
                // Setting title with version description
                if (versions[descriptor.value()]) {
                    descriptor.properties.title = versions[descriptor.value()];
                }
                if (descriptor.title()) {
                    linkElem.prop('title', descriptor.title());
                } else {
                    linkElem.prop('title', linkElem.text());
                }
                listElem.data("descriptor", descriptor);
                return listElem;
            }
        })
    }
})();

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Sunday in Agility

You asked for it, so we delivered: images on issues have arrived

A picture tells a thousand words. And agility boards have just released their latest feature: cover images on issues – so now your board can tell a story at first glance. Upload attachmen...

171 views 1 10
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