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).
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; } }) } })();
Did you update the description in the correct field configuration?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
(Just so we're clear - the description to be shown is not the FIELD "Fix Versions" but the descriptions for individual fix versions themselves)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.