You can now vote for scripts to help people know if they're useful or not. Login or create an account to vote!


Get a list of all the cloned issues in a project


A simple console script which can be used to get all the cloned issues in a specific project.


As a user, I want to get a list of all the cloned issues in a project. To do this, I can run this sample script on ScriptRunner's console.


  • Jira Jira (8.5 - 8.22)
  • ScriptRunner for Jira ScriptRunner for Jira (6.45.0)
import com.atlassian.jira.component.ComponentAccessor def issueLinkManager = ComponentAccessor.issueLinkManager def projectManager = ComponentAccessor.projectManager def issueManager = ComponentAccessor.issueManager //Specify the project key final def projectKey = '' def project = projectManager.getProjectByCurrentKey(projectKey) def issues = issueManager.getIssueObjects(issueManager.getIssueIdsForProject( issues.collect { issueLinkManager.getOutwardLinks( { == 'Cloners' }.collect { it.sourceObject.key } }.sort().flatten()
Discovered an issue? Report it here

Suggested for you