The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Linking new task to story based on summary

Daria Potapova
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 15, 2020

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. 

JiraAutomation.png

Could you guys please help out and point me in the direction of how to solve this. 

Many thanks!

Dasha

0 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.