Delete Issue Operation

The default Delete Issue Operation is proposed depending on Delete Permission defined in Permission Scheme.

Minyaa provides a new Delete Issue Operation a way to extend the Condition to evaluate.

Steps are :

  • Default Delete Issue Operation is disabled by APIs
  • Evaluation of new condition is delegated to the MinyaaWorkflowManager
    • A new Meta Attribute is evaluated from the Issue's Workflow.
This Meta Attribute may be through a Boolean value :
<meta name="minyaa.jira.issue.deletable">false</meta>
or a Condition Class (See details.)
<meta name="minyaa.jira.issue.deletable">com.company.MyDeletableIssueCondition</meta>
This Meta Attribute may be used :
  • At the Workflow Step level
    <step id="1" name="Open">
    	<meta name="jira.status.id">10100</meta>
    	<meta name="minyaa.jira.issue.deletable">com.company.MyDeletableIssueCondition</meta>
    	<actions>
    		<common-action id="10" />
    		<common-action id="20" />
    	</actions>
    </step>
  • At Edit Action level (See KAAM-190 and KAAM-226), which will be assumed as Global (for any Step)
    <global-actions>
    	<action id="2" name="Edit Issue"  >
    		<meta name="minyaa.jira.operation.id">1</meta>
    		<meta name="minyaa.jira.issue.deletable">true</meta>
    		<restrict-to> ...	</restrict-to>
    		<validators> ... </validators>
    		<results> ... </results>
    	</action>
    </global-actions>
Also, you may define a default Delete Condition at Edit Action level, and just add another condition for some of Steps.

Condition defined at Step level will override those defined at Edit Action level.