I would like to close a issue when ever the issue is linked by duplicate to another issue.
How could this be achieved in JIRA using script runner. Please note that I am currently using JIRA 8.2 .I d not have automation in Jira
When ever the issue is linked to another issue as the duplicate , I would like to triggers an event or have listeners that marks the issue as closed. The issue can be in any status and it if it is updated as marked duplicate in the issue links, I would like to mark the issue as closed.