none
adding user comment to incident doesn't work, when incident is not "active"

    Question

  • hy,

    test incident with status "on hold".

    applied the custom modification as written on the MS TechNet instructions page, so that the incident shows up as "active".

    end user is adding comment to this incident - gets confirmation "your request was updated succesfully":

    last modification is from yesterday, comment does not get added to ticket:

    Thursday, February 11, 2016 7:53 AM

Answers


  • Just add this line in  MyRequests\RequestDetails.cshtm

        if (requestEntry["Status"].ToString().Equals("ServiceRequestStatusEnum.OnHold")

          || requestEntry["Status"].ToString().Equals("IncidentStatusEnum.Active.Pending"))

        {

            requestEntry["RequestStatus"] = Resources.SelfServicePortalResources.Active;

            changeStatusButtonText = Resources.SelfServicePortalResources.CancelRequest;

            changeStatusCommentPlaceholder = Resources.SelfServicePortalResources.AddCommentToCancel;

            status = "Active";

        }


    Friday, February 12, 2016 11:30 AM
  • there is no such file "MyRequests.cshtml".

    i assume you are talking about MyRequests\RequestDetails.cshtml - found a similar code block there. testing now....

    edit:

    confirming that solved the issue.

    • Edited by RR Med Friday, February 12, 2016 11:58 AM
    • Marked as answer by RR Med Friday, February 12, 2016 11:58 AM
    Friday, February 12, 2016 11:40 AM

All replies


  • Just add this line in  MyRequests\RequestDetails.cshtm

        if (requestEntry["Status"].ToString().Equals("ServiceRequestStatusEnum.OnHold")

          || requestEntry["Status"].ToString().Equals("IncidentStatusEnum.Active.Pending"))

        {

            requestEntry["RequestStatus"] = Resources.SelfServicePortalResources.Active;

            changeStatusButtonText = Resources.SelfServicePortalResources.CancelRequest;

            changeStatusCommentPlaceholder = Resources.SelfServicePortalResources.AddCommentToCancel;

            status = "Active";

        }


    Friday, February 12, 2016 11:30 AM
  • there is no such file "MyRequests.cshtml".

    i assume you are talking about MyRequests\RequestDetails.cshtml - found a similar code block there. testing now....

    edit:

    confirming that solved the issue.

    • Edited by RR Med Friday, February 12, 2016 11:58 AM
    • Marked as answer by RR Med Friday, February 12, 2016 11:58 AM
    Friday, February 12, 2016 11:40 AM