Skip to content

Jira Integration

the swagger for the api is swagger-v3.v3.json

the jira base url is https://xxxxxxx.atlassian.net/

the jira username is [email protected]

the jira token is xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

use markitdown to convert ms excel files to markdown and read it

use the jira project XXXX

Come leggere i progetti Jira

Per ottenere l'elenco dei progetti Jira, utilizzare l'endpoint REST API:

curl -X GET \
  "${JIRA_BASE_URL}/rest/api/3/project" \
  -H "Authorization: Basic $(echo -n '${JIRA_USERNAME}:${JIRA_TOKEN}' | base64 -w 0)" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json"

L'endpoint restituisce un array JSON con i dettagli di tutti i progetti accessibili, inclusi: - ID e chiave del progetto - Nome del progetto - Tipo di progetto (software, service_desk) - Stile (classic, next-gen) - Avatar URLs

Come leggere epiche, task e artefatti di un progetto

Ottenere tutte le epiche di un progetto

curl -X GET \
  "${JIRA_BASE_URL}/rest/api/3/search?jql=project=PROJECT_KEY%20AND%20type=Epic" \
  -H "Authorization: Basic $(echo -n '${JIRA_USERNAME}:${JIRA_TOKEN}' | base64 -w 0)" \
  -H "Accept: application/json"

Ottenere tutti i task di un progetto

curl -X GET \
  "${JIRA_BASE_URL}/rest/api/3/search?jql=project=PROJECT_KEY%20AND%20type=Task" \
  -H "Authorization: Basic $(echo -n '${JIRA_USERNAME}:${JIRA_TOKEN}' | base64 -w 0)" \
  -H "Accept: application/json"

Ottenere tutti gli artefatti (issue) di un progetto

curl -X GET \
  "${JIRA_BASE_URL}/rest/api/3/search?jql=project=PROJECT_KEY&maxResults=100" \
  -H "Authorization: Basic $(echo -n '${JIRA_USERNAME}:${JIRA_TOKEN}' | base64 -w 0)" \
  -H "Accept: application/json"

Note: - Sostituire PROJECT_KEY con la chiave del progetto desiderato (es: SDLCSANDB) - maxResults=100 limita il numero di risultati restituiti - Per altri tipi di issue, sostituire Epic o Task con il tipo desiderato (es: Story, Bug, Requisito) - L'endpoint /search supporta query JQL (Jira Query Language) per filtri avanzati