mirror of
https://gitea.com/mcereda/oam.git
synced 2026-02-09 05:44:23 +00:00
1.3 KiB
1.3 KiB
Jira
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
- Go to Project settings > Automation.
- In the Rules tab, click on the Create rule button.
- For the When trigger, choose Scheduled.
- Pick a schedule, or define a cron in the Advanced section.
- For the Then component, choose Create issue.
- Fill in the task's details.