{
  "info": {
    "_postman_id": "a5dfa64f-b204-4e71-b03f-8eaf8f605353",
    "name": "Jira",
    "description": "Creates a Jira issue via the REST API, using Basic Auth (email + personal access token) and the standard 2-endpoint issue-creation body.",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "item": [
    {
      "name": "Create Issue",
      "request": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          },
          {
            "key": "Accept",
            "value": "application/json"
          }
        ],
        "auth": {
          "type": "basic",
          "basic": [
            {
              "key": "username",
              "value": "{{apiUser}}",
              "type": "string"
            },
            {
              "key": "password",
              "value": "{{apiToken}}",
              "type": "string"
            }
          ]
        },
        "body": {
          "mode": "raw",
          "raw": "{\n  \"fields\": {\n    \"project\": {\n      \"key\": \"{{projectKey}}\"\n    },\n    \"summary\": \"Summary of the task\",\n    \"description\": \"Hello World Task Created\",\n    \"issuetype\": {\n      \"name\": \"Task\"\n    },\n    \"assignee\": {\n      \"id\": \"{{assigneeGroupId}}\"\n    },\n    \"priority\": {\n      \"name\": \"High\"\n    }\n  }\n}"
        },
        "url": {
          "raw": "{{jiraUrl}}",
          "host": [
            "{{jiraUrl}}"
          ]
        }
      },
      "response": []
    }
  ]
}