atlcloudjira_dashboard (Resource)

Example Usage

import {
  to = atlcloudjira_dashboard.SampleDashboardResource
  id = 10005
}

import {
  to = atlcloudjira_dashboard.SampleDashboardResource2
  id = 10006
}

# __generated__ by Terraform
# Please review these resources and move them into your main configuration files.

# __generated__ by Terraform from "10005"
resource "atlcloudjira_dashboard" "SampleDashboardResource" {
  automatic_refresh_ms = 0
  description          = "Sample dashboard description"
  edit_permissions = [
    {
      config = {
        group_id        = ""
        project_id      = "10001"
        project_role_id = ""
        type            = "project"
        user_id         = ""
      }
    },
  ]
  gadgets = {
    c0r0 = {
      color      = "blue"
      module_key = null
      properties = {
        config = {
          daysprevious      = "30"
          id                = "10000"
          isConfigured      = "true"
          isPopup           = "false"
          name              = "Filter for TIP"
          periodName        = "daily"
          projectOrFilterId = "filter-10000"
          refresh           = "false"
          statuses          = "10010"
          type              = "filter"
          yaxisPeriod       = "hourly"
        }
      }
      title = "Average Time in Status"
      uri   = "rest/gadgets/1.0/g/com.atlassian.jira.ext.charting:timeinstatus-gadget/com/atlassian/jira/ext/charting/gadget/timeinstatus-gadget.xml"
    }
    c0r1 = {
      color      = "blue"
      module_key = null
      properties = {
        config = {
          daysprevious      = "30"
          id                = "10001"
          isConfigured      = "true"
          isPopup           = "false"
          name              = "Filter for KS board"
          periodName        = "daily"
          projectOrFilterId = "filter-10001"
          refresh           = "false"
          statuses          = ""
          type              = "filter"
          yaxisPeriod       = "hourly"
        }
      }
      title = "Average Number of Times in Status"
      uri   = "rest/gadgets/1.0/g/com.atlassian.jira.ext.charting:numberoftimesinstatus-gadget/com/atlassian/jira/ext/charting/gadget/numberoftimesinstatus-gadget.xml"
    }
    c0r2 = {
      color      = "blue"
      module_key = null
      properties = {
        config = {
          daysprevious      = "30"
          id                = "10001"
          isConfigured      = "true"
          isPopup           = "false"
          name              = "Filter for KS board"
          periodName        = "daily"
          projectOrFilterId = "filter-10001"
          refresh           = "false"
          type              = "filter"
        }
      }
      title = "Average Age Chart"
      uri   = "rest/gadgets/1.0/g/com.atlassian.jira.gadgets:average-age-chart-gadget/gadgets/average-age-gadget.xml"
    }
    c0r3 = {
      color      = "blue"
      module_key = null
      properties = {
        config = {
          columnNames  = "issuetype|issuekey|summary|priority"
          isConfigured = "true"
          num          = "10"
          refresh      = "false"
          sortColumn   = ""
        }
      }
      title = "Assigned to Me"
      uri   = "rest/gadgets/1.0/g/com.atlassian.jira.gadgets:assigned-to-me-gadget/gadgets/assigned-to-me-gadget.xml"
    }
    c0r4 = {
      color      = "blue"
      module_key = null
      properties = {
        config = {
          "" = "null"
        }
      }
      title = "Activity Stream"
      uri   = "rest/gadgets/1.0/g/com.atlassian.streams.streams-jira-plugin:activitystream-gadget/gadgets/activitystream-gadget.xml"
    }
    c1r0 = {
      color      = "blue"
      module_key = "com.atlassian.jira.gadgets:bubble-chart-dashboard-item"
      properties = {
        bubbleType = {
          bubbleType = "participants"
        }
        id = {
          id = "10001"
        }
        isConfigured = {
          isConfigured = "true"
        }
        name = {
          name = "Filter for KS board"
        }
        recentCommentsPeriod = {
          recentCommentsPeriod = "7"
        }
        refresh = {
          refresh = "15"
        }
        type = {
          type = "filter"
        }
        useLogarithmicScale = {
          useLogarithmicScale = "false"
        }
        useRelativeColoring = {
          useRelativeColoring = "true"
        }
      }
      title = "Bubble Chart"
      uri   = null
    }
    c1r1 = {
      color      = "blue"
      module_key = null
      properties = {
        config = {
          daysprevious        = "30"
          id                  = "10001"
          isConfigured        = "true"
          isCumulative        = "false"
          isPopup             = "false"
          name                = "Filter for KS board"
          operation           = "count"
          periodName          = "daily"
          projectOrFilterId   = ""
          refresh             = "false"
          showUnresolvedTrend = "false"
          type                = "filter"
          versionLabel        = "major"
        }
      }
      title = "Created vs. Resolved Chart"
      uri   = "rest/gadgets/1.0/g/com.atlassian.jira.gadgets:created-vs-resolved-issues-chart-gadget/gadgets/createdvsresolved-gadget.xml"
    }
    c1r2 = {
      color      = "blue"
      module_key = "com.atlassian.servicedesk.dashboard-items-plugin:filter-count-dashboard-item"
      properties = null
      title      = "Filter counts"
      uri        = null
    }
    c1r3 = {
      color      = "blue"
      module_key = null
      properties = {
        config = {
          id                = "10001"
          isConfigured      = "true"
          isPopup           = "false"
          name              = "Filter for KS board"
          projectOrFilterId = "filter-10001"
          refresh           = "false"
          statType          = "assignees"
          type              = "filter"
        }
      }
      title = "Heat Map"
      uri   = "rest/gadgets/1.0/g/com.atlassian.jira.gadgets:heat-map-gadget/gadgets/heatmap-gadget.xml"
    }
    c1r4 = {
      color      = "blue"
      module_key = "com.atlassian.jira.gadgets:introduction-dashboard-item"
      properties = null
      title      = "Introduction"
      uri        = null
    }
    c1r5 = {
      color      = "blue"
      module_key = null
      properties = {
        config = {
          dateFieldName     = "duedate"
          displayVersions   = "false"
          id                = "10017"
          isConfigured      = "true"
          name              = "Filter for MyBoard"
          numOfIssueIcons   = "10"
          projectOrFilterId = "filter-10017"
          refresh           = "false"
          type              = "filter"
        }
      }
      title = "Jira Issues Calendar"
      uri   = "rest/gadgets/1.0/g/com.atlassian.jira.ext.calendar:issuescalendar-gadget/templates/plugins/jira/portlets/calendar/gadget/calendar-gadget.xml"
    }
    c1r6 = {
      color      = "blue"
      module_key = null
      properties = {
        config = {
          fieldId      = "labels"
          isConfigured = "true"
          projectid    = "project-10000"
          refresh      = "false"
        }
      }
      title = "Labels Gadget"
      uri   = "rest/gadgets/1.0/g/com.atlassian.jira.gadgets:labels-gadget/gadgets/labels-gadget.xml"
    }
    c1r7 = {
      color      = "blue"
      module_key = null
      properties = {
        config = {
          "" = "null"
        }
      }
      title = "Projects"
      uri   = "rest/gadgets/1.0/g/com.atlassian.jira.gadgets:project-gadget/gadgets/project-gadget.xml"
    }
    c2r0 = {
      color      = "blue"
      module_key = null
      properties = {
        config = {
          isConfigured      = "true"
          rapidViewId       = "3"
          refresh           = "false"
          showRapidViewName = "true"
          showSprintName    = "true"
          sprintId          = "auto"
        }
      }
      title = "Days Remaining in Sprint Gadget"
      uri   = "rest/gadgets/1.0/g/com.pyxis.greenhopper.jira:greenhopper-gadget-sprint-days-remaining/gadgets/greenhopper-sprint-days-remaining.xml"
    }
    c2r1 = {
      color      = "blue"
      module_key = null
      properties = {
        config = {
          columnNames  = "issuetype|issuekey|summary|priority"
          filterId     = "10001"
          isConfigured = "true"
          isPopup      = "false"
          num          = "10"
          refresh      = "false"
        }
      }
      title = "Filter Results"
      uri   = "rest/gadgets/1.0/g/com.atlassian.jira.gadgets:filter-results-gadget/gadgets/filter-results-gadget.xml"
    }
    c2r2 = {
      color      = "blue"
      module_key = null
      properties = {
        config = {
          id                = "10001"
          isConfigured      = "true"
          isPopup           = "false"
          name              = "Filter for KS board"
          projectOrFilterId = "filter-10001"
          refresh           = "false"
          statType          = "assignees"
          type              = "filter"
        }
      }
      title = "Heat Map"
      uri   = "rest/gadgets/1.0/g/com.atlassian.jira.gadgets:heat-map-gadget/gadgets/heatmap-gadget.xml"
    }
    c2r3 = {
      color      = "blue"
      module_key = null
      properties = {
        config = {
          id                    = "10001"
          includeResolvedIssues = "false"
          isConfigured          = "true"
          maxResults            = "10"
          name                  = "Filter for KS board"
          projectOrFilterId     = "filter-10001"
          refresh               = "false"
          sortBy                = "total"
          sortDirection         = "desc"
          statType              = "assignees"
          type                  = "filter"
        }
      }
      title = "Issue Statistics"
      uri   = "rest/gadgets/1.0/g/com.atlassian.jira.gadgets:stats-gadget/gadgets/stats-gadget.xml"
    }
    c2r4 = {
      color      = "blue"
      module_key = null
      properties = {
        config = {
          columnNames  = "issuetype|issuekey|summary|priority"
          isConfigured = "true"
          num          = "10"
          refresh      = "false"
        }
      }
      title = "Issues in progress"
      uri   = "rest/gadgets/1.0/g/com.atlassian.jira.gadgets:in-progress-gadget/gadgets/in-progress-gadget.xml"
    }
    c2r5 = {
      color      = "blue"
      module_key = null
      properties = {
        config = {
          days                 = "30"
          isConfigured         = "true"
          num                  = "10"
          projectsOrCategories = "10000"
          refresh              = "false"
        }
      }
      title = "Jira Road Map"
      uri   = "rest/gadgets/1.0/g/com.atlassian.jira.gadgets:road-map-gadget/gadgets/roadmap-gadget.xml"
    }
    c2r6 = {
      color      = "blue"
      module_key = null
      properties = {
        config = {
          id                = "10017"
          isConfigured      = "true"
          isPopup           = "false"
          name              = "Filter for MyBoard"
          projectOrFilterId = ""
          refresh           = "false"
          statType          = "assignees"
          type              = "filter"
        }
      }
      title = "Pie Chart"
      uri   = "rest/gadgets/1.0/g/com.atlassian.jira.gadgets:pie-chart-gadget/gadgets/piechart-gadget.xml"
    }
  }
  layout   = "AAA"
  name     = "New Testing"
  owner_id = "712020:7793726f-0b82-4dc8-ba5c-e22769c1fd16"
  share_permissions = [
    {
      config = {
        group_id        = ""
        project_id      = ""
        project_role_id = ""
        type            = "user"
        user_id         = "5fde5ea73b5e47013845900a"
      }
    },
    {
      config = {
        group_id        = ""
        project_id      = "10000"
        project_role_id = ""
        type            = "project"
        user_id         = ""
      }
    },
    {
      config = {
        group_id        = "80dacb68-6f79-46c6-b22e-296669e36568"
        project_id      = ""
        project_role_id = ""
        type            = "group"
        user_id         = ""
      }
    },
  ]
}

# __generated__ by Terraform from "10006"
resource "atlcloudjira_dashboard" "SampleDashboardResource2" {
  automatic_refresh_ms = 0
  description          = "Sample dashboard description 2"
  edit_permissions     = null
  gadgets = {
    c0r0 = {
      color      = "blue"
      module_key = null
      properties = {
        config = {
          isConfigured      = "true"
          rapidViewId       = "3"
          refresh           = "false"
          showRapidViewName = "false"
          showSprintName    = "false"
          sprintId          = "auto"
        }
      }
      title = "Sprint Burndown Gadget"
      uri   = "rest/gadgets/1.0/g/com.pyxis.greenhopper.jira:greenhopper-gadget-sprint-burndown/gadgets/greenhopper-sprint-burndown.xml"
    }
    c0r1 = {
      color      = "blue"
      module_key = null
      properties = {
        config = {
          isConfigured      = "true"
          rapidViewId       = "3"
          refresh           = "false"
          showAssignees     = "false"
          showRapidViewName = "true"
          showSprintName    = "true"
          sprintId          = "auto"
        }
      }
      title = "Sprint Health Gadget"
      uri   = "rest/gadgets/1.0/g/com.pyxis.greenhopper.jira:greenhopper-gadget-sprint-health/gadgets/greenhopper-sprint-health.xml"
    }
    c0r2 = {
      color      = "blue"
      module_key = null
      properties = {
        config = {
          "" = "null"
        }
      }
      title = "Starred filters"
      uri   = "rest/gadgets/1.0/g/com.atlassian.jira.gadgets:favourite-filters-gadget/gadgets/favourite-filters-gadget.xml"
    }
    c0r3 = {
      color      = "blue"
      module_key = null
      properties = {
        config = {
          dateField         = "created"
          daysprevious      = "30"
          id                = "10017"
          isConfigured      = "true"
          isCumulative      = "true"
          isPopup           = "false"
          name              = "Filter for MyBoard"
          periodName        = "daily"
          projectOrFilterId = "filter-10017"
          refresh           = "false"
          type              = "filter"
        }
      }
      title = "Time Since Chart"
      uri   = "rest/gadgets/1.0/g/com.atlassian.jira.gadgets:time-since-chart-gadget/gadgets/timesince-gadget.xml"
    }
    c0r4 = {
      color      = "blue"
      module_key = null
      properties = {
        config = {
          daysprevious      = "30"
          id                = "10001"
          isConfigured      = "true"
          isPopup           = "false"
          name              = "Filter for KS board"
          periodName        = "daily"
          projectOrFilterId = "filter-10001"
          refresh           = "false"
          type              = "filter"
        }
      }
      title = "Time to First Response"
      uri   = "rest/gadgets/1.0/g/com.atlassian.jira.ext.charting:firstresponse-gadget/com/atlassian/jira/ext/charting/gadget/firstresponse-gadget.xml"
    }
    c0r5 = {
      color      = "blue"
      module_key = null
      properties = {
        config = {
          filterId      = "filter-10017"
          isConfigured  = "true"
          isPopup       = "false"
          more          = "false"
          numberToShow  = "5"
          refresh       = "false"
          sortBy        = "natural"
          sortDirection = "asc"
          xstattype     = "assignees"
          ystattype     = "assignees"
        }
      }
      title = "Two Dimensional Filter Statistics"
      uri   = "rest/gadgets/1.0/g/com.atlassian.jira.gadgets:two-dimensional-stats-gadget/gadgets/two-dimensional-stats-gadget.xml"
    }
    c0r6 = {
      color      = "blue"
      module_key = null
      properties = {
        config = {
          columnNames    = "issuetype|issuekey|summary|priority"
          isConfigured   = "true"
          num            = "10"
          refresh        = "false"
          showResolved   = "false"
          showTotalVotes = "false"
        }
      }
      title = "Voted Issues"
      uri   = "rest/gadgets/1.0/g/com.atlassian.jira.gadgets:voted-gadget/gadgets/voted-gadget.xml"
    }
    c0r7 = {
      color      = "blue"
      module_key = null
      properties = {
        config = {
          "" = "null"
        }
      }
      title = "Wallboard Spacer Gadget"
      uri   = "rest/gadgets/1.0/g/com.atlassian.jira.atlassian-wallboard-plugin:spacer-gadget/gadgets/spacerGadget.xml"
    }
    c0r8 = {
      color      = "blue"
      module_key = null
      properties = {
        config = {
          columnNames      = "issuetype|issuekey|summary|priority"
          isConfigured     = "true"
          num              = "10"
          refresh          = "false"
          showResolved     = "false"
          showTotalWatches = "false"
        }
      }
      title = "Watched Issues"
      uri   = "rest/gadgets/1.0/g/com.atlassian.jira.gadgets:watched-gadget/gadgets/watched-gadget.xml"
    }
    c0r9 = {
      color      = "blue"
      module_key = null
      properties = {
        config = {
          id                = "10001"
          isConfigured      = "true"
          isPopup           = "false"
          issuetimetype     = "timespent"
          name              = "Filter for KS board"
          projectOrFilterId = "filter-10001"
          refresh           = "false"
          statistictype     = "customfield_10046"
          type              = "filter"
        }
      }
      title = "Workload Pie Chart"
      uri   = "rest/gadgets/1.0/g/com.atlassian.jira.ext.charting:workloadpie-gadget/com/atlassian/jira/ext/charting/gadget/workloadpie-gadget.xml"
    }
    c1r0 = {
      color      = "blue"
      module_key = "com.atlassian.servicedesk.servicedesk-reports-plugin:custom-report-dashboard-item"
      properties = {
        gadgetContentTitle = {
          gadgetContentTitle = "Test IT project - Created vs Resolved"
        }
        intervalValue = {
          intervalValue = "1"
        }
        isConfigured = {
          isConfigured = "true"
        }
        isCustom = {
          isCustom = "true"
        }
        projectValue = {
          projectValue = "TIP"
        }
        refresh = {
          refresh = "false"
        }
        reportValue = {
          reportValue = "1"
        }
      }
      title = "Service project report"
      uri   = null
    }
    c1r1 = {
      color      = "blue"
      module_key = null
      properties = {
        config = {
          daysprevious      = "30"
          id                = "10017"
          isConfigured      = "true"
          isPopup           = "false"
          name              = "Filter for MyBoard"
          periodName        = "daily"
          projectOrFilterId = "filter-10017"
          refresh           = "false"
          type              = "filter"
        }
      }
      title = "Resolution Time"
      uri   = "rest/gadgets/1.0/g/com.atlassian.jira.gadgets:resolution-time-gadget/gadgets/resolution-time-gadget.xml"
    }
    c1r10 = {
      color      = "blue"
      module_key = null
      properties = {
        config = {
          columnNames  = "issuetype|issuekey|summary|priority"
          isConfigured = "true"
          num          = "10"
          refresh      = "false"
        }
      }
      title = "Issues in progress"
      uri   = "rest/gadgets/1.0/g/com.atlassian.jira.gadgets:in-progress-gadget/gadgets/in-progress-gadget.xml"
    }
    c1r2 = {
      color      = "blue"
      module_key = null
      properties = {
        config = {
          daysprevious      = "30"
          id                = "10017"
          isConfigured      = "true"
          isPopup           = "false"
          name              = "Filter for MyBoard"
          periodName        = "daily"
          projectOrFilterId = "filter-10017"
          refresh           = "false"
          type              = "filter"
        }
      }
      title = "Recently Created Chart"
      uri   = "rest/gadgets/1.0/g/com.atlassian.jira.gadgets:recently-created-chart-gadget/gadgets/recently-created-gadget.xml"
    }
    c1r3 = {
      color      = "blue"
      module_key = null
      properties = {
        config = {
          "" = "null"
        }
      }
      title = "Quick links"
      uri   = "rest/gadgets/1.0/g/com.atlassian.jira.gadgets:quicklinks-gadget/gadgets/quicklinks-gadget.xml"
    }
    c1r4 = {
      color      = "blue"
      module_key = null
      properties = {
        config = {
          "" = "null"
        }
      }
      title = "Projects"
      uri   = "rest/gadgets/1.0/g/com.atlassian.jira.gadgets:project-gadget/gadgets/project-gadget.xml"
    }
    c1r5 = {
      color      = "blue"
      module_key = null
      properties = {
        config = {
          id                = "10001"
          isConfigured      = "true"
          isPopup           = "false"
          name              = "Filter for KS board"
          projectOrFilterId = ""
          refresh           = "false"
          statType          = "assignees"
          type              = "filter"
        }
      }
      title = "Pie Chart"
      uri   = "rest/gadgets/1.0/g/com.atlassian.jira.gadgets:pie-chart-gadget/gadgets/piechart-gadget.xml"
    }
    c1r6 = {
      color      = "blue"
      module_key = null
      properties = {
        config = {
          fieldId      = "labels"
          isConfigured = "true"
          projectid    = "project-10000"
          refresh      = "false"
        }
      }
      title = "Labels Gadget"
      uri   = "rest/gadgets/1.0/g/com.atlassian.jira.gadgets:labels-gadget/gadgets/labels-gadget.xml"
    }
    c1r7 = {
      color      = "blue"
      module_key = null
      properties = {
        config = {
          days                 = "30"
          isConfigured         = "true"
          num                  = "10"
          projectsOrCategories = "allprojects"
          refresh              = "false"
        }
      }
      title = "Jira Road Map"
      uri   = "rest/gadgets/1.0/g/com.atlassian.jira.gadgets:road-map-gadget/gadgets/roadmap-gadget.xml"
    }
    c1r8 = {
      color      = "blue"
      module_key = null
      properties = {
        config = {
          dateFieldName     = "duedate"
          displayVersions   = "false"
          id                = "10017"
          isConfigured      = "true"
          name              = "Filter for MyBoard"
          numOfIssueIcons   = "10"
          projectOrFilterId = "filter-10017"
          refresh           = "false"
          type              = "filter"
        }
      }
      title = "Jira Issues Calendar"
      uri   = "rest/gadgets/1.0/g/com.atlassian.jira.ext.calendar:issuescalendar-gadget/templates/plugins/jira/portlets/calendar/gadget/calendar-gadget.xml"
    }
    c1r9 = {
      color      = "blue"
      module_key = null
      properties = {
        config = {
          columnNames  = "issuetype|issuekey|summary|priority"
          isConfigured = "true"
          num          = "10"
          refresh      = "false"
        }
      }
      title = "Issues in progress"
      uri   = "rest/gadgets/1.0/g/com.atlassian.jira.gadgets:in-progress-gadget/gadgets/in-progress-gadget.xml"
    }
  }
  layout            = "AB"
  name              = "New Testing 2"
  owner_id          = "712020:7793726f-0b82-4dc8-ba5c-e22769c1fd16"
  share_permissions = null
}

Schema

Required

  • automatic_refresh_ms (Number) Dashboard data refresh rate in ms

  • layout (String) Dashboard column layout

  • name (String) The name of the dashboard.

  • owner_id (String) The owner's account ID of the dashboard.

Optional

  • description (String) The description of the dashboard.

  • edit_permissions (Attributes Set) The details of any view edit permissions for the dashboard. (see below for nested schema)

  • gadgets (Attributes Map) The list of gadgets on the dashboard. Gadget's are positioned by row and column. (see below for nested schema)

  • share_permissions (Attributes Set) The details of any view share permissions for the dashboard. (see below for nested schema)

Read-Only

  • gadgets_mapping (Map of String) Helper attribute, gadget position to ID mapping.

  • id (Number) The ID of the dashboard.

  • last_updated (String) Timestamp of the last Terraform update of the Dashboard.

Nested Schema for edit_permissions

Optional:

  • config (Map of String)

Nested Schema for gadgets

Optional:

  • color (String) The color of the gadget. Should be one of blue, red, yellow, green, cyan, purple, gray, or white.

  • module_key (String) The Module Key of the gadget type. Some gadgets use URI and some Module Key.

  • properties (Map of Map of String) Gadget's configuration.

  • title (String) The title of the gadget.

  • uri (String) The URI of the gadget type. Some gadgets use URI and some Module Key.

Nested Schema for share_permissions

Optional:

  • config (Map of String)