Hello Jira Masters ,
i want to disable the inline edit (click to edit) on a custom field
could you please help ?
Thanks !
Remove the field from the "edit" screen for the issue type. That prevents users changing it (it looks like a calculated field to me)
@Nic Brough -Adaptavist-, I've come across with the same problem and I need to have an ability to edit field on Edit Screen, is there any other way to disable inline editing for one specific custom field?
The only native way is to remove it from the edit screen. You can't disable in-line edit selectively.
You can try something like Behaviours, which can remove it field-by-field, but a) don't, it's useful for users and b) it's easy to work around it
Ok, thanks, got it.
https://confluence.atlassian.com/jirakb/how-to-disable-inline-editing-376833061.htmlCan you see it
Add somewhere in .js:
AJS.toInit(function(){ AJS.$(".uneditable").ajaxComplete(function() {var uneditableElms = AJS.$('.uneditable').parent();if (uneditableElms.length) { uneditableElms.removeClass('inactive'); uneditableElms.removeClass('editable-field'); uneditableElms.removeAttr('title'); uneditableElms.find('span.overlay-icon').hide(); } });});
and in view template:
#enable_html_escaping()<span #if ($uneditable) class="uneditable" #end > #if (${displayParameters.excel_view} || ${displayParameters.escapeHtml}) $textutils.br($textutils.htmlEncode($!value, false)) #else $!value #end</span>
It looks like you're new here. Sign in or register to get started.