When Minyaa Suite introduces the Worklog Type, some improvements have been asked in order to force users to specify the Worklog Type, and not let it undefined.
The Worflow MetaAttribute minyaa.jira.issue.worklogtype.required is available and let you the ability to specify a Boolean or a Condition
(It can be done using the Boolean and Condition Attribute Editor).
This boolean evaluation will define if the Worklog Type are required
This options may be also defined at the Edit Action level in order to be applicable for all steps.
Condition defined at Step level will override those defined at Edit Action level.
<step id="1" name="Open"> <meta name="jira.status.id">10100</meta> <meta name="minyaa.jira.issue.worklogtype.required">com.company.MyEditableIssueCondition</meta> <actions> <common-action id="10" /> <common-action id="20" /> </actions> </step>
<global-actions> <action id="2" name="Edit Issue" > <meta name="minyaa.jira.operation.id">1</meta> <meta name="minyaa.jira.issue.worklogtype.required">true</meta> <restrict-to> ... </restrict-to> <validators> ... </validators> <results> ... </results> </action> </global-actions>
The list of Ids (for allowed Worklog types) will appended as value of the Meta-Attribute
<step id="1" name="Open"> <meta name="minyaa.jira.issue.worklogtype.allowed">1,2,3</meta> <actions> <common-action id="10" /> <common-action id="20" /> </actions> </step>