atlcloudjira_issue_security_scheme (Resource)

Example Usage

resource "atlcloudjira_issue_security_scheme" "TestIssueSecuritySchemeResource" {
  default_security_level_name = "Level 5"
  description                 = "Lorem ipsum dolor sit amet."
  name                        = "Test Issue Security Scheme"
  security_levels = {
    Level_1 = {
      description = "Sample Level Description."
      members = [
        {
          holder = {
            parameter = ""
            type      = "applicationRole"
          }
        },
        {
          holder = {
            parameter = ""
            type      = "assignee"
          }
        },
        {
          holder = {
            parameter = ""
            type      = "lead"
          }
        },
        {
          holder = {
            parameter = ""
            type      = "reporter"
          }
        },
        {
          holder = {
            parameter = ""
            type      = "sd.customer.portal.only"
          }
        },
        {
          holder = {
            parameter = "10003"
            type      = "projectrole"
          }
        },
        {
          holder = {
            parameter = "80dacb68-6f79-46c6-b22e-296669e36568"
            type      = "user"
          }
        },
        {
          holder = {
            parameter = "customfield_10046"
            type      = "groupCF"
          }
        },
        {
          holder = {
            parameter = "customfield_10047"
            type      = "userCF"
          }
        },
        {
          holder = {
            parameter = "jira-core"
            type      = "applicationRole"
          }
        },
        {
          holder = {
            parameter = "jira-servicedesk"
            type      = "applicationRole"
          }
        },
        {
          holder = {
            parameter = "jira-software"
            type      = "applicationRole"
          }
        },
        {
          holder = {
            parameter = "mySpecialGroup"
            type      = "group"
          }
        },
      ]
      name = "Level 1"
    }
    Level_4 = {
      description = "CEO Ext"
      members = [
        {
          holder = {
            parameter = ""
            type      = "applicationRole"
          }
        },
        {
          holder = {
            parameter = ""
            type      = "reporter"
          }
        },
        {
          holder = {
            parameter = "10003"
            type      = "projectrole"
          }
        },
        {
          holder = {
            parameter = "80dacb68-6f79-46c6-b22e-296669e36568"
            type      = "user"
          }
        },
        {
          holder = {
            parameter = "mySpecialGroup"
            type      = "group"
          }
        },
      ]
      name = "Level 4"
    }
    Level_5 = {
      description = "Lorem ipsum sample."
      members = [
        {
          holder = {
            parameter = ""
            type      = "applicationRole"
          }
        },
        {
          holder = {
            parameter = ""
            type      = "assignee"
          }
        },
        {
          holder = {
            parameter = ""
            type      = "lead"
          }
        },
        {
          holder = {
            parameter = ""
            type      = "reporter"
          }
        },
        {
          holder = {
            parameter = ""
            type      = "sd.customer.portal.only"
          }
        },
        {
          holder = {
            parameter = "10003"
            type      = "projectrole"
          }
        },
        {
          holder = {
            parameter = "80dacb68-6f79-46c6-b22e-296669e36568"
            type      = "user"
          }
        },
        {
          holder = {
            parameter = "customfield_10046"
            type      = "groupCF"
          }
        },
        {
          holder = {
            parameter = "customfield_10047"
            type      = "userCF"
          }
        },
        {
          holder = {
            parameter = "jira-core"
            type      = "applicationRole"
          }
        },
        {
          holder = {
            parameter = "jira-servicedesk"
            type      = "applicationRole"
          }
        },
        {
          holder = {
            parameter = "jira-software"
            type      = "applicationRole"
          }
        },
        {
          holder = {
            parameter = "mySpecialGroup"
            type      = "group"
          }
        },
      ]
      name = "Level 5"
    }
    Level_6 = {
      description = "CEO Ext 2"
      members = [
        {
          holder = {
            parameter = ""
            type      = "reporter"
          }
        },
        {
          holder = {
            parameter = "10003"
            type      = "projectrole"
          }
        },
        {
          holder = {
            parameter = "80dacb68-6f79-46c6-b22e-296669e36568"
            type      = "user"
          }
        },
        {
          holder = {
            parameter = "jira-software"
            type      = "applicationRole"
          }
        },
        {
          holder = {
            parameter = "mySpecialGroup"
            type      = "group"
          }
        },
      ]
      name = "Level 6"
    }
  }
}

Schema

Required

  • name (String) The unique name for the component in the project. Required when creating a component. Optional when updating a component.

Optional

  • default_security_level_name (String) Name of the default security level used in scheme.

  • description (String) The description for the component. Optional when creating or updating a component.

  • security_levels (Attributes Map) List of security levels. Levels are ordered by numbers that are virtual values. (see below for nested schema)

Read-Only

  • hidden (Map of String) Helper attribute. Used to map issue security levels number with IDs.

  • id (Number) The ID project component.

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

Nested Schema for security_levels

Optional:

  • description (String) The description of the issue level security item.

  • members (Attributes Set) The entities being granted the permission. (see below for nested schema)

  • name (String) The name of the issue level security item.

Nested Schema for security_levels.members

Optional:

  • holder (Map of String) The type of permission holder.