From 58778286b6d8627a54e42068ddd22c8256ee3dd8 Mon Sep 17 00:00:00 2001 From: Michele Cereda Date: Sun, 6 Apr 2025 11:22:08 +0200 Subject: [PATCH] chore(kb/jira): add common actions section --- knowledge base/jira.md | 39 +++++++++++++++++++++++++++------------ 1 file changed, 27 insertions(+), 12 deletions(-) diff --git a/knowledge base/jira.md b/knowledge base/jira.md index 189d0f0..6786c2c 100644 --- a/knowledge base/jira.md +++ b/knowledge base/jira.md @@ -1,25 +1,26 @@ # Jira -## Table of contents - 1. [TL;DR](#tldr) -1. [Sources](#sources) +1. [Common actions](#common-actions) + 1. [Create scheduled tasks](#create-scheduled-tasks) +1. [Further readings](#further-readings) + 1. [Sources](#sources) ## TL;DR ```sh -# 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 \ +# 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.", + "summary": "REST, ye merry gentlemen.", "description": "Creating of an issue using project keys and issue type names using the REST API", "issuetype": { "name": "Task" @@ -28,12 +29,26 @@ curl https://${COMPANY}.atlassian.net/rest/api/2/issue \ }' ``` -## Sources +## Common actions + +### Create scheduled tasks + +1. Go to _Project settings_ > _Automation_. +1. In the _Rules_ tab, click on the _Create rule_ button. +1. For the _When_ trigger, choose _Scheduled_. +1. Pick a schedule, or define a cron in the _Advanced_ section. +1. For the _Then_ component, choose _Create issue_. +1. Fill in the task's details. + +## Further readings + +### Sources - [Creating JIRA issue using curl from command line]