atlcloudjira_issues (Data Source)

Fetches the issue field values.

Example Usage

data "atlcloudjira_issues" "SampleIssueDataSource" {
  # key = "CKAN-1"
  jql          = "key = CKAN-1"
  field_filter = ["priority", "summary"]
}

output "SampleIssueDataSource_out" {
  value = [
    for i in range(length(data.atlcloudjira_issues.SampleIssueDataSource.issues)) :
    {
      "priority_name" = jsondecode(data.atlcloudjira_issues.SampleIssueDataSource.issues[i].fields["priority"])["name"]
      "summary"       = jsondecode(data.atlcloudjira_issues.SampleIssueDataSource.issues[i].fields["summary"])
    }
  ]
}

/* Sample Output
SampleIssueDataSource_out = [
  {
    "priority_name" = "Medium"
    "summary" = "Test Epic Issue Source 1"
  },
]
*/

Schema

Optional

  • field_filter (List of String) When set, it is filtering returned issues' fields, by mentioned field names (e.g. summary, customfield_10010, etc.).

  • id (String) Use either ID or Issue Key to search for issues, not both.

  • issues (Attributes List) Issues returned from search query. (see below for nested schema)

  • jql (String) Valid JQL query used to search for issues.

  • key (String) Use either ID or Issue Key to search for issues, not both.

Nested Schema for issues

Optional:

  • fields (Map of String) Issue fields listed by ID (e.g. summary, attachments, customfield_10010, etc.)

  • id (String) ID of returned issue.

  • key (String) Issue Key of returned issue.