rule
Feature subtickets workflow
 
when
!
(
subtask of
.
isEmpty
)
&&
(
subtask of
.
changed
||
becomesReported
(
 
)
)
{
assert
subtask of
.
first
.
Type
==
{
Feature
}
:
"
Tickets can be only subtasks of feature.
"
;
assert
Type
==
{
Task
}
||
Type
==
{
Bug
}
:
"
Only bug and task tickets can have a parent.
"
+
Type
;
assert
subtask of
.
first
.
Fix versions
.
isEmpty
:
"
This feature is already released. You cannot add more tickets to it. In case of a bug or new related task you need to report it to standard backlog.
"
;
 
Branch
=
{
Parent
}
;
}