Open Context Protocol is live! 🚀 Read the launch post

unarchiveIssues

Unarchive issue(s) by issue keys/ID

Details

  • Method: PUT
  • Path: /rest/api/3/issue/unarchive
  • Operation ID: unarchiveIssues

Parameters

{
  "issueIdsOrKeys": {
    "description": "",
    "required": false,
    "location": "body",
    "type": "array"
  }
}

Response Schema

{
  "additionalProperties": false,
  "description": "Number of archived/unarchived issues and list of errors that occurred during the action, if any.",
  "properties": {
    "errors": {
      "additionalProperties": false,
      "properties": {
        "issueIsSubtask": {
          "additionalProperties": false,
          "properties": {
            "count": {
              "format": "int64",
              "type": "integer"
            },
            "issueIdsOrKeys": {
              "items": {
                "type": "string"
              },
              "type": "array",
              "uniqueItems": true
            },
            "message": {
              "type": "string"
            }
          },
          "type": "object"
        },
        "issuesInArchivedProjects": {
          "additionalProperties": false,
          "properties": {
            "count": {
              "format": "int64",
              "type": "integer"
            },
            "issueIdsOrKeys": {
              "items": {
                "type": "string"
              },
              "type": "array",
              "uniqueItems": true
            },
            "message": {
              "type": "string"
            }
          },
          "type": "object"
        },
        "issuesInUnlicensedProjects": {
          "additionalProperties": false,
          "properties": {
            "count": {
              "format": "int64",
              "type": "integer"
            },
            "issueIdsOrKeys": {
              "items": {
                "type": "string"
              },
              "type": "array",
              "uniqueItems": true
            },
            "message": {
              "type": "string"
            }
          },
          "type": "object"
        },
        "issuesNotFound": {
          "additionalProperties": false,
          "properties": {
            "count": {
              "format": "int64",
              "type": "integer"
            },
            "issueIdsOrKeys": {
              "items": {
                "type": "string"
              },
              "type": "array",
              "uniqueItems": true
            },
            "message": {
              "type": "string"
            }
          },
          "type": "object"
        },
        "userDoesNotHavePermission": {
          "additionalProperties": false,
          "properties": {
            "count": {
              "format": "int64",
              "type": "integer"
            },
            "issueIdsOrKeys": {
              "items": {
                "type": "string"
              },
              "type": "array",
              "uniqueItems": true
            },
            "message": {
              "type": "string"
            }
          },
          "type": "object"
        }
      },
      "type": "object"
    },
    "numberOfIssuesUpdated": {
      "format": "int64",
      "type": "integer"
    }
  },
  "type": "object"
}

Usage

from ocp_agent import OCPAgent

agent = OCPAgent()
await agent.register_api('jira')

# Call this tool
result = await agent.call_tool('unarchiveIssues', {
    # Add required parameters here
})