atlcloudjira_groups (Data Source)

Fetches the issue field values.

Example Usage

data "atlcloudjira_groups" "SampleGroupDataSource1" {
  group_name = "mySpecialGroup"
  //group_id = "0ea0d285-8db9-4061-b17f-fcdd0e7f0698"
}

output "SampleGroupDataSource1_out" {
  value = data.atlcloudjira_groups.SampleGroupDataSource1.groups[0].group_id
}

data "atlcloudjira_groups" "SampleGroupDataSource2" {
  //group_name = "mySpecialGroup"
  group_id = "0ea0d285-8db9-4061-b17f-fcdd0e7f0698"
}

output "SampleGroupDataSource2_out2" {
  value = [
    for i in range(length(data.atlcloudjira_groups.SampleGroupDataSource2.groups)) :
    {
      "group_id"   = data.atlcloudjira_groups.SampleGroupDataSource2.groups[i].group_id
      "group_name" = data.atlcloudjira_groups.SampleGroupDataSource2.groups[i].group_name
    }
  ]
}

/* Sample output
SampleGroupDataSource1_out = "b9ae8124-347d-4c67-ac4a-f4e8c491756d"
SampleGroupDataSource2_out2 = [
  {
    "group_id" = "0ea0d285-8db9-4061-b17f-fcdd0e7f0698"
    "group_name" = "system-administrators"
  },
]

*/

Schema

Optional

  • group_id (String) Group ID used to search results. Must be exact match.

  • group_name (String) Group name used to search results. Support partial match.

  • groups (Attributes List) Groups returned by search results. (see below for nested schema)

Nested Schema for groups

Optional:

  • group_id (String) The ID of the group.

  • group_name (String) The name of the group.