mirror of
https://gitea.com/mcereda/oam.git
synced 2026-02-09 05:44:23 +00:00
29 lines
707 B
Markdown
29 lines
707 B
Markdown
# Jira
|
|
|
|
```sh
|
|
# create a ticket
|
|
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
|
|
|
|
- [Creating JIRA issue using curl from command line]
|
|
|
|
[creating jira issue using curl from command line]: https://stackoverflow.com/questions/31052721/creating-jira-issue-using-curl-from-command-line#31052990
|