From f55ec081b2ec203168ef7f1fdce0e6da359b95a7 Mon Sep 17 00:00:00 2001 From: Michele Cereda Date: Mon, 18 Apr 2022 00:12:04 +0200 Subject: [PATCH] Added jira notes to the knowledge base --- knowledge base/jira.md | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 knowledge base/jira.md diff --git a/knowledge base/jira.md b/knowledge base/jira.md new file mode 100644 index 0000000..4bf113c --- /dev/null +++ b/knowledge base/jira.md @@ -0,0 +1,28 @@ +# Jira + +```shell +# 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" + } + } + }' +``` + +## Further readings + +- [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