This is an answer rather than a question.
I'm in the Cloud and I need a way to see issues that do not have subtasks, for a set of specific parent and subtask issue types. There is no nice way to use the out-of-the-box filtering or plugins in the Cloud to find issues with subtasks.
What I did:
- Created a "hasSubtasks" custom number field. (Do not add it to anything, it doesn't need to be visible.)
- Added a post function to the Open transition for the subtask workflow to increment hasSubtask by 1.
- Added a post function to the Open translation for the subtask workflow to copy the value to the parent issue.
- Filter on issues where hasSubtasks is not empty or as a specific value (sometimes I want to see if there is more than one subtask).
It's simple but it works for me. Hope it meets someone else's needs, too.
Cheers.