REST API for statuses does not work if its name contains forward slash

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Low
    • None
    • Affects Version/s: 7.11.2, 7.13.9
    • Component/s: REST API
    • None
    • 7.11
    • 1
    • Severity 3 - Minor

      Issue Summary

      REST API for statuses does not work if its name contains forward slash

      Steps to Reproduce

      Perform a GET request using CURL, Postman or directly in the web browser to <JIRA Base URL>/rest/api/2/status/{StatusName} , where status name contains the character "/" For example: "Peer review / change manager approval".

      Expected Results

      According to documentation for the endpoint Get Status, the status information should be retrieved.

      Actual Results

      An error 400 is returned

      Example: Having the name "Peer review / change manager approval", which encoded to URL is "Peer%20review%20%2F%20change%20manager%20approval", the entire URL would be:

      <JIRA BASE URL>/rest/api/2/status/Peer%20review%20%2F%20change%20manager%20approval

      and this produces an error 400.

      Workaround

      Use the ID instead of the name

        1. image-2020-05-05-21-44-37-244.png
          62 kB
          Rene C. [Atlassian Support]

            Assignee:
            Unassigned
            Reporter:
            Rene C. [Atlassian Support] (Inactive)
            Votes:
            5 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated: