Hi community!.
I would like to disable comments in the service desk when the the status is closed and the resolution is no response . I found some possible solutions when the status is closed but i need to keep it available for reopenings cases .
any ideas ?
Thanks in advance .
To disable comments in the Jira Service Desk portal when the status is 'Closed' and the resolution is 'No Response,' you can use a combination of Jira's built-in features and a custom script using a scripting app like ScriptRunner for Jira.
Here's a step-by-step guide to achieve this:
import com.atlassian.jira.component.ComponentAccessor
def issue = event.issue
def customFieldManager = ComponentAccessor.getCustomFieldManager()
def resolutionField = customFieldManager.getCustomFieldObjectByName("resolution")
def resolutionValue = issue.getCustomFieldValue(resolutionField)
if (issue.status.name == "Closed" && resolutionValue?.name == "No Response") {
return false
}
return true
This script checks if the issue status is 'Closed' and if the resolution is 'No Response.' If both conditions are met, the comment event is canceled.
Save the changes to the listener.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.