I'm aware of using issue.applyCommand("delete") to delete a reported issue, however, I want my workflow to initiate when an issue becomesReported instead of isReported. It seems that the issue must be in the draft phase at this point.
Is it possible to delete a draft of an issue in workflow?
I couldn't find a command for this. When I try this in the command line on an open draft, the preview of the command says
"Delete command cannot be applied to draft issue. Use 'Clear draft' instead."
'Clear draft' is not a command, and may be referring to a button of a similar name.
I have issues that are automatically added to a project, but I want to delete the issues that have the same job ID (custom field value).
Thanks in advance.