I have an issue with issue's summary eg. 646791-1 which is moved to status done column.
Now another new issue is created with a same summary 646791-1 but with different project key which jira takes care automatically.
I want to link these two issues as they are similar except project key
and this has to be automated every time i populate the jira board with new list of issues
that verifies or compares issues with done status list and creates link by relates to automatically.
this way i can maintain a chain of link everytime similar summary of issues are created.
Help me how to do in automation.