I am using Jira Cloud and ScriptRunner.
I have created my own links called "Parent of" and "Child of".
Our structure we use is Story > Task > Subtask. The stories are connected to the tasks by these custom links.
When a story is created it is given a label that mirrors the name of the story. The tasks are also given this same label.
I would like to write a script that does the following:
- If the label is on a story, it is given the "Parent of" custom link automatically
- If the label is on a task, it is given the "Child of" custom link automatically
That way, if the label is put on the story on creation and then added to a task, the "Parent of" and "Child of" links are automatically added.