Files
oam/knowledge base/jira.md
2023-07-09 20:48:18 +02:00

857 B

Jira

Table of contents

  1. TL;DR
  2. Sources

TL;DR

# Create a ticket from the CLI.
curl https://${COMPANY}.atlassian.net/rest/api/2/issue \
  -D - \
  -u ${USER_EMAIL}:${API_TOKEN} \
  -H "Content-Type: application/json" \
  -X POST \
  --data '{
    "fields": {
      "project": {
        "key": "PROJECT_KEY"
      },
      "summary": "REST ye merry gentlemen.",
      "description": "Creating of an issue using project keys and issue type names using the REST API",
      "issuetype": {
        "name": "Task"
      }
    }
  }'

Sources