The only way you can create a link between two issues is by doing it manually. In your case the issue type Test with User story.
Please follow the steps below to link issue type test to User story.
1 . Please open a Jira story or create one if none exists.
2. Click on "More" button and then click "Link" from the drop down menu.
3. Select the issue (in your case any issue of type Test) you wish to link it to the story.
4. Click the button "Link" at the bottom.
Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG