Hiya,
I am creating an Automation rule with the aim of being able to create a story, then based on the Summary field of the story trigger the rule. The Summary will contain the fixVersion of the other stories I am trying to find, For each story that is found I would like a sub-task adding to my Main story with the Summary of the item from the lookupIssues.
Trigger: Issue Created
If: Issue matches JQL - type = story and Summary ~ "Release* MAY24-*-02"
And: fixVersion ~ "MAY24-*-02"
Then I would like to go through each of the lookupissues that are returned and for each one get the Summary, then use that summary to create a new SubTask under the TiggerIssue using the lookupissue summary text.
Ideally I would have my JQL Check that the word release is present and that it is a story, then using the rest of the Summary text to see if any fixVersions match and return. The hope would be as long as the main ticket is created following the naming convention "Release MMM24-*-XX" then it could run without needing to be amended each month. The big issue at the moment though I am facing is being able to use the lookup values when creating the SubTask. I only seem to be able to set the summary of the subtask to that of the parent task.
Many Thanks
J.