Display scope information of projects in trash in REST API response

XMLWordPrintable

    • 2
    • 2

      Issue Summary

      Performing a request to the Get screens REST API endpoint, the response contains the scope information of the project if it's available. In case the project is moved to the trash, the scope information does not appear, however the screen is still available. Therefore, in this feature request, it would be valuable to have the information of having scope even when the project is in the trash.

      Steps to Reproduce

      1. Perform the request for the REST API endpoint: GET /rest/api/3/screens.
      2. Notice the scope information for the project.
      3. In case the project is deleted, the scope will not appear in the response of the endpoint.

      Expected Results

      The scope information to be available even after the project is in trash.

      {
      2		"id": 10000,
      3		"name": "TEST: Simple Default Issue Screen",
      4		"description": "",
      5		"scope": {
      6			"type": "PROJECT",
      7			"project": {
      8				"id": "10000"
      9			}
      10		}
      11}, 

      Actual Results

      There's no scope information available for the project in trash.

      {
      2	"id": 10000,
      3	"name": "TEST: Simple Default Issue Screen",
      4	"description": ""
      5} 

      Workaround

      Currently there is no known workaround for this behavior. A workaround will be added here when available

              Assignee:
              Unassigned
              Reporter:
              Guilherme Bueno (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: