Versions Compared
compared with
Key
- This line was added.
- This line was removed.
- Formatting was changed.
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 :
Code Block | ||
---|---|---|
| ||
<meta name="minyaa.jira.issue.deletable">false</meta> |
or a Condition Class (See details.)
Code Block | ||
---|---|---|
| ||
<meta name="minyaa.jira.issue.deletable">com.company.MyDeletableIssueCondition</meta> |
This Meta Attribute may be used :
At the Workflow Step level
Code Block language xml <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)
Code Block language xml <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.
Panel | |
---|---|
On this page:
|
Content by Label | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Info | ||
---|---|---|
| ||
See also ... |