terraform-provider-dynatrace icon indicating copy to clipboard operation
terraform-provider-dynatrace copied to clipboard

Problems tile in dashboard giving "no permissions" error when adding a custom management zone filter

Open saadrafique768 opened this issue 2 months ago • 10 comments

Describe the bug I used the dynatrace json dashboard resource https://registry.terraform.io/providers/dynatrace-oss/dynatrace/latest/docs/resources/json_dashboard and the problems tile was filtered for a custom management zone. This gives error due to "no permissions" when deployed.

image

however, I was able to create the same problems tile with custom management zone filter in the same environment without error without using terraform. So it makes me wonder if its due to terraform here. image

To Reproduce Steps to reproduce the behavior:

  1. use https://registry.terraform.io/providers/dynatrace-oss/dynatrace/latest/docs/resources/json_dashboard to make a dashboard with a problems tile filtered for a management zone.
  2. once changes are deployed, it gives error "no permissions" next to management zone
  3. below is the json snippet of the tile in terraform
"tiles": [
      {
        "bounds": {
          "height": 152,
          "left": 38,
          "top": 646,
          "width": 266
        },
        "configured": true,
        "name": "Problems (open/all)",
        "tileFilter": {
          "managementZone": {
            "id": "8549387243402376494",
            "name": "team-hawaiian-pizza"
          }
        },
        "tileType": "OPEN_PROBLEMS"
      },

Expected behavior There should not be any error on problems tile and i should be able to apply management zone filter on problems tile.

Screenshots all samples attached

saadrafique768 avatar Apr 29 '24 13:04 saadrafique768