Creating a team with a pipe in the name can cause issues with the escalation policies

XMLWordPrintable

    • 3
    • Severity 3 - Minor
    • 1

      Issue Summary

      While creating a new team, if you add a pipe in the name, you will not be able to edit the escalation policies because the pipe is an invalid character. 

      Steps to Reproduce

      1. Create a team with a pipe in the name, i.e., "Senior team | incidents".
      2. Enable Operations.
      3. Try to edit the escalation policy that was automatically created.

      Expected Results

      • You should be able to edit the escalation policy, or a message should appear informing you that there are invalid characters in the name.
      • We should not allow creating teams with a pipe in the name, as happens in Opsgenie.

      Actual Results

      The escalation will not save, and no messages will appear in the UI.

      On the browser dev tools, you will see the error below:

      {
          "message": "Name can only contain alphanumeric characters, dots, underscores and dashes. Leading and trailing spaces are not allowed.",
          "took": 0.017,
          "requestId": "732fac9f-a6c6-43de-ae20-4ea3805ad8d2"
      } 

      Workaround

      Rename the escalation policy and remove the pipe.

            Assignee:
            Unassigned
            Reporter:
            Nataniel Rocha
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: