Files
oam/knowledge base/jira.md
2025-04-06 11:22:08 +02:00

1.3 KiB

Jira

  1. TL;DR
  2. Common actions
    1. Create scheduled tasks
  3. Further readings
    1. Sources

TL;DR

# Create issues using the APIs.
curl "https://${COMPANY}.atlassian.net/rest/api/2/issue" \
  --dump-header '-' \
  --user "${USER_EMAIL}:${API_TOKEN}" \
  --header 'Content-Type: application/json' \
  --request '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"
      }
    }
  }'

Common actions

Create scheduled tasks

  1. Go to Project settings > Automation.
  2. In the Rules tab, click on the Create rule button.
  3. For the When trigger, choose Scheduled.
  4. Pick a schedule, or define a cron in the Advanced section.
  5. For the Then component, choose Create issue.
  6. Fill in the task's details.

Further readings

Sources