First Part:
I have migrated numerous stories to a different version but that has not migrated the child subtasks of those stories. Many of the subtasks are tied to previous versions or no version at all. I am just now noticing this.
I am needing to query all the subtasks of the stories within the version I have just moved to and then migrate those subtasks to the same version of the parent stories. I am unclear how to accomplish this in JQL.
Second part of my question:
Is there a way to prevent this from happening in the future? Can I have a function that applies the fixVersion of a parent to a child subtask and then also have that fixVersion of the sub-task change along with the parent story's version?