Hey!
So here is my issue:
In our projects we add a lot of tasks, which should be linked to stories. Doing this by hand takes an enormous amount of time.
Due to the hierarchy our stories have summary like "1.1. Block 1" and tasks have summaries like "1.1.1 Problem 1".
So, when we add new tasks we want them to be automatically linked to stories based on first 4 characters of the summaries , i.e. "1.1.".
Since we can have any numerical combination of the first 4 characters we want to get new tasks summary's first 4 characters then compare it to stories in the project and after link the new task to the story with matching first 4 characters.
I'm using Automation plugin and from searching for answers realised I might need to use the ScriptRunner (in which I'm a novice).
With Automation I got this far. I'm having an issue with the branch rule (as you can see I have specified the summary characters). I'm guessing there is a way of merging the advanced compare condition into the branch rule JQL, which I suppose should be done with Script runner.
Could you guys please help out and point me in the direction of how to solve this.
Many thanks!
Dasha