The Zurich release has arrived! Interested in new features and functionalities? Click here for more

Additional comment (customer visible) is not visibile in closed incident form for end user

subhasmita
Kilo Contributor

Hello,

When I check for closed incident for "Additional comment" field, this field is not visible for end user having itil role. For me(admin) I can see the "Additional comment" field. When I impersonate with any itil user I cant see the "Additional comment" field. Can anyone give the solution?

PFA

Regards,

Subhasmita

1 ACCEPTED SOLUTION

Normal functionality is that once a ticket is closed not more updates should be made.  So yes this is normal.  This is the OOB code for Mark Closed:

setClosureFields();

function setClosureFields() {
	// incident_state is Closed so
	// 1. mark the task as inactive
	// 2. set the closed by to current user if not supplied
	// 3. set the closed time to now if not supplied
	current.active = false;
	if (current.closed_by.nil())
		current.closed_by = gs.getUserID();
	if (current.closed_at.nil())
		current.closed_at = gs.nowDateTime();
	
	// Update the fields that indicate the time/duration of the incident from open to close.
	// Keep track of duration as a glide_duration value (dd hh:mm:ss) and as a pure number of seconds.
	// Both calendar time and business time are maintained.
	
	var dataChange = current.opened_at.changes() || (current.closed_at.changes() && !current.isValidField("resolved_at"));
	var opened = current.opened_at.getDisplayValue();
	var closed = current.closed_at.getDisplayValue();
	
	if (dataChange || current.business_duration.nil())
		current.business_duration = gs.calDateDiff(opened, closed, false);
	
	if (dataChange || current.business_stc.nil())
		current.business_stc = gs.calDateDiff(opened, closed, true);
	
	if (dataChange || current.calendar_duration.nil())
		current.calendar_duration = gs.dateDiff(opened, closed, false);
	
	if (dataChange || current.calendar_stc.nil())
		current.calendar_stc = gs.dateDiff(opened, closed, true);
}

View solution in original post

3 REPLIES 3

Brian Lancaster
Tera Sage

Since it is visible for you as admin most likely there is an ACL that is making the Additional comments read only on closed incidents.

subhasmita
Kilo Contributor

Hello bricast,

Is this functionality is a normal behaviour? That means after closing an incident ticket should the "Additional comment" field be visible for end user/ITIL user? 

Regards,

Subhasmita

Normal functionality is that once a ticket is closed not more updates should be made.  So yes this is normal.  This is the OOB code for Mark Closed:

setClosureFields();

function setClosureFields() {
	// incident_state is Closed so
	// 1. mark the task as inactive
	// 2. set the closed by to current user if not supplied
	// 3. set the closed time to now if not supplied
	current.active = false;
	if (current.closed_by.nil())
		current.closed_by = gs.getUserID();
	if (current.closed_at.nil())
		current.closed_at = gs.nowDateTime();
	
	// Update the fields that indicate the time/duration of the incident from open to close.
	// Keep track of duration as a glide_duration value (dd hh:mm:ss) and as a pure number of seconds.
	// Both calendar time and business time are maintained.
	
	var dataChange = current.opened_at.changes() || (current.closed_at.changes() && !current.isValidField("resolved_at"));
	var opened = current.opened_at.getDisplayValue();
	var closed = current.closed_at.getDisplayValue();
	
	if (dataChange || current.business_duration.nil())
		current.business_duration = gs.calDateDiff(opened, closed, false);
	
	if (dataChange || current.business_stc.nil())
		current.business_stc = gs.calDateDiff(opened, closed, true);
	
	if (dataChange || current.calendar_duration.nil())
		current.calendar_duration = gs.dateDiff(opened, closed, false);
	
	if (dataChange || current.calendar_stc.nil())
		current.calendar_stc = gs.dateDiff(opened, closed, true);
}