We're updating the issue view to help you get more done. 

removeAttachmentVersions action - log output of selection criteria matching

Description

To aid selection criteria debugging and document attachment removal, produce a csv output log that contains the selection criteria results and attachment version information. Just like any list action, the output can be optionally routed to a file. Parameters like outputType, columns, and database table output parameters are automatically supported like any other list action.

The support is helpful for analysis before removal by using the simulate parameter.

Example

1 2 3 4 5 6 7 8 9 10 11 12 --action removeAttachmentVersions --space "xxx" --title "history" --name "remove.txt" --date "2019-08-03 15:06:12.381" --dateFormat "yyyy-MM-dd HH:mm:ss.S" --limit 999 --simulate --columns "selected,by date,by limit,by comment,attachment title,version number,created" --outputType "table" Simulate: 0 versions removed for attachment 'remove.txt' on page 'history' in space zcliattachmentversions. 3 versions remain. ┌──────────┬─────────┬──────────┬────────────┬──────────────────┬────────────────┬─────────────────────────┐ │ Selected │ By Date │ By Limit │ By Comment │ Attachment Title │ Version Number │ Created │ ├──────────┼─────────┼──────────┼────────────┼──────────────────┼────────────────┼─────────────────────────┤ │ No │ No │ No │ No │ remove.txt │ 6 │ 2019-08-03 15:06:13.608 │ ├──────────┼─────────┼──────────┼────────────┼──────────────────┼────────────────┼─────────────────────────┤ │ No │ No │ No │ Yes │ remove.txt │ 5 │ 2019-08-03 15:06:12.381 │ ├──────────┼─────────┼──────────┼────────────┼──────────────────┼────────────────┼─────────────────────────┤ │ No │ Yes │ No │ Yes │ remove.txt │ 4 │ 2019-08-03 15:06:11.163 │ └──────────┴─────────┴──────────┴────────────┴──────────────────┴────────────────┴─────────────────────────┘

Environment

None

Status

Assignee

Bob Swift [Bob Swift Atlassian Apps]

Reporter

Bob Swift [Bob Swift Atlassian Apps]

Labels

None

Support Entitlement

None

Fix versions

Priority

Major