Hello all 
I've been searching for automation for a long time without finding the solution.
I'm working on non-aggression tests, I'm given a user stories about Jira that gathers all the tests to be performed.
I create a subtasksto be able to follow my work.
What I'm trying to do : That my sub-task is successful (green color) when all tests associated with the main task are in "PASS" status.
The main task once the tests are performed :

My sub-task in the board :

Do you know how to create this type of automation ?
This status automation will allow me to see if a test has been modified, I will save a lot of time.
Thank you in advance for your help 
JIRA v7.4.2
Portfolio for Jira v2.7.0
JIRA Service Desk Application v3.6.2
JIRA Agile v7.4.0