Jira · Arazzo Workflow

Jira Safely Delete an Issue

Version 1.0.0

Read an issue and its sub-tasks first, then delete it with an explicit sub-task decision.

1 workflow 1 source API 1 provider
View Spec View on GitHub AgileIssue TrackingITSMProject ManagementService ManagementArazzoWorkflows

Provider

jira

Workflows

safe-issue-delete
Inspect a Jira issue and its sub-tasks, then delete it deliberately.
Reads the issue to record what is being deleted and whether it has sub-tasks, then deletes it with an explicit sub-task disposition.
2 steps inputs: deleteSubtasks, issueIdOrKey outputs: deletedIssueKey, deletedIssueSummary, projectKey
1
inspectIssue
Read the issue and its sub-tasks before destroying it, so the caller can record what was deleted and know whether the sub-task flag is required.
2
deleteIssue
Delete the inspected issue by the key returned from the read, with an explicit decision about its sub-tasks. Returns 204 with no body on success.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Jira Safely Delete an Issue
  summary: Read an issue and its sub-tasks first, then delete it with an explicit sub-task decision.
  description: >-
    Deletion in Jira is unrecoverable through the REST API and will fail outright
    when an issue has sub-tasks unless the caller explicitly opts into deleting
    them too. This workflow therefore reads the issue first — capturing its
    summary and sub-task list so the caller knows exactly what is about to be
    destroyed and can log it — before issuing the delete with a deliberate
    deleteSubtasks decision. Every step spells out its request inline so the flow
    can be read and executed without opening the underlying OpenAPI description.
  version: 1.0.0
sourceDescriptions:
- name: issuesApi
  url: ../openapi/jira-issues-api-openapi.yml
  type: openapi
workflows:
- workflowId: safe-issue-delete
  summary: Inspect a Jira issue and its sub-tasks, then delete it deliberately.
  description: >-
    Reads the issue to record what is being deleted and whether it has
    sub-tasks, then deletes it with an explicit sub-task disposition.
  inputs:
    type: object
    required:
    - issueIdOrKey
    properties:
      issueIdOrKey:
        type: string
        description: The id or key of the issue to delete (e.g. PROJ-123).
      deleteSubtasks:
        type: string
        description: >-
          Whether the issue's sub-tasks are deleted along with it. Sent as the
          string "true" or "false" as the API defines it. A delete against an
          issue that has sub-tasks fails with 400 when this is "false".
        enum:
        - 'true'
        - 'false'
        default: 'false'
  steps:
  - stepId: inspectIssue
    description: >-
      Read the issue and its sub-tasks before destroying it, so the caller can
      record what was deleted and know whether the sub-task flag is required.
    operationId: getIssue
    parameters:
    - name: issueIdOrKey
      in: path
      value: $inputs.issueIdOrKey
    - name: fields
      in: query
      value:
      - summary
      - status
      - subtasks
      - project
      - issuetype
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      issueId: $response.body#/id
      issueKey: $response.body#/key
      issueSummary: $response.body#/fields/summary
      subtasks: $response.body#/fields/subtasks
      projectKey: $response.body#/fields/project/key
  - stepId: deleteIssue
    description: >-
      Delete the inspected issue by the key returned from the read, with an
      explicit decision about its sub-tasks. Returns 204 with no body on success.
    operationId: deleteIssue
    parameters:
    - name: issueIdOrKey
      in: path
      value: $steps.inspectIssue.outputs.issueKey
    - name: deleteSubtasks
      in: query
      value: $inputs.deleteSubtasks
    successCriteria:
    - condition: $statusCode == 204
  outputs:
    deletedIssueKey: $steps.inspectIssue.outputs.issueKey
    deletedIssueSummary: $steps.inspectIssue.outputs.issueSummary
    projectKey: $steps.inspectIssue.outputs.projectKey

Work with this as data

Every workflow here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for arazzo workflows

4 MCP tools reach this
  • find_arazzoBrowse and filter every workflow in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This workflow
curl "https://apis.io/api/v1/arazzo/jira-safe-issue-delete-workflow"
All arazzo workflows
curl "https://apis.io/api/v1/arazzo?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.