View Issue Details

IDProjectCategoryView StatusLast Update
0034425mantisbtapi restpublic2026-08-22 13:14
Reporternewtondino Assigned Tovboctor  
PrioritynormalSeverityfeatureReproducibilityN/A
Status resolvedResolutionfixed 
Target Version2.29.0Fixed in Version2.29.0 
Summary0034425: Delete attachment via REST
Description

Periodically I do attachment cleanup on old tickets:

  • find old tickets (can do via REST)
  • download attachments for archive (can do via REST)
  • delete attachments from ticket (this enhancement request)
  • add a note pointing to archived copied outside of mantis

It's really close to being a fully scripted process except for the delete part.

I've seen 2 cancelled PRs related to this topic. Hoping it can be revisited sometime soon.

TIA

TagsNo tags attached.

Relationships

related to 0023871 closedvboctor Include delete_url for attachments in REST API 

Activities

newtondino

newtondino

2024-04-26 15:13

reporter   ~0068871

Sorry, there is only 1 cancelled PR for 0023871 and that request was to provide a delete_url.

dregad

dregad

2024-04-29 03:34

developer   ~0068872

Contributions are welcome

vboctor

vboctor

2026-08-22 04:49

manager   ~0071362

PR: https://github.com/mantisbt/mantisbt/pull/2262

Related Changesets

MantisBT: master 8ea22d7d

2026-08-22 04:34

vboctor


Details Diff
Add issue attachment delete command

Fixes 0034425
Affected Issues
0034425
add - core/commands/IssueFileDeleteCommand.php Diff File

MantisBT: master fbb64787

2026-08-22 04:35

vboctor


Details Diff
Expose issue attachment deletion via REST

Fixes 0034425
Affected Issues
0034425
mod - api/rest/mantisbt_openapi.yaml Diff File
mod - api/rest/restcore/issues_rest.php Diff File

MantisBT: master f0dcf7ff

2026-08-22 04:35

vboctor


Details Diff
Test REST issue attachment operations

Fixes 0034425
Affected Issues
0034425
add - tests/rest/RestIssueFilesTest.php Diff File

MantisBT: master ff40be06

2026-08-22 04:39

vboctor


Details Diff
Use command for web attachment deletion

Fixes 0034425
Affected Issues
0034425
mod - bug_file_delete.php Diff File

MantisBT: master 5a4f4da6

2026-08-22 04:39

vboctor


Details Diff
Use command for SOAP attachment deletion

Fixes 0034425
Affected Issues
0034425
mod - api/soap/mc_issue_attachment_api.php Diff File
mod - tests/soap/AttachmentTest.php Diff File

MantisBT: master 2435c4eb

2026-08-22 04:51

vboctor


Details Diff
Fix OpenAPI attachment delete path

Fixes 0034425
Affected Issues
0034425
mod - api/rest/mantisbt_openapi.yaml Diff File