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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @Aleksey Dzyapko ,
Can you explain me how you did it as i am also looking for same.
Regards
Bhakti Prasad Panda
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.