Hi Community
does anyone know if the app STAGIL Hide Comment for JIRA still works in jira data center 10... in the update check of the apps it is shown as not compatible but i am not sure if this is really true. hope someone knows more :)
thanks for the help and have a nice day, Vera
Hi @Vera_wyss hope you're doing well!
It seems that the STAGIL Hide Comment plugin is outdated. However, its functionality was simple, so we can easily reproduce it. Here are some alternatives:
This method works if you have the ScriptRunner plugin installed.
Create a Behaviour in ScriptRunner.
Select your project and issue type.
Configure it as follows:
This setup hides the Comment field for the selected project and issue type in all actions (edit and transitions).
But! If you need to hide the field only on the edit screen, you’ll need some customization:
Create an initialize script and insert this code:
String actionName = getActionName()
if (Objects.isNull(actionName)) {
getFieldById("comment").setHidden(true)
}
This option is available out of the box, but it reduces instance security.
Go to General Configuration and set "Enable HTML in field descriptions and list item values" to ON.
Create a custom field and name it HIDE COMMENT. The field type can be anything (e.g., Number Field).
Add this code to the field description (replace customfield_10600 with your HIDE COMMENT customfield_id):
<script type='text/javascript'>
const divFormBody = $("div.form-body")
const hideCommentField = divFormBody.find("#customfield_10600")
if (hideCommentField.length) {
// Hide comment
hideCommentField.parent().siblings("div.comment-input").hide()
// Hide technical 'HIDE COMMENT' field itself:
hideCommentField.parent().hide()
}
</script>
Add the field to the desired screen and see the magic happen! 🙂
Hi @Sergei Troshin
thank you very much for your reply. As soon as we have done the update, I will test whether I can do it with your instructions and would be happy to contact you again if not.
Have a nice day,
Vera
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Vera,
STAGIL Hide Comment for Jira has been deprecated and is no longer supported. This means there will be no further development, compatibility testing, or bug fixes for this app.
However, you may consider the STAGIL Navigation for Jira app, as the 'Hide Comment' functionality has been migrated there: STAGIL Navigation for Jira. Please note that this is a paid alternative.
Regards,
Marta
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.