Hi,
I want to know how can I find all archived issues for a given project using scriptrunner.
Hi Jakub,
Here is how you can do it from a Script Console:
Here's an example:
import com.atlassian.jira.component.ComponentAccessordef projectManager = ComponentAccessor.getProjectManager()def issueManager = ComponentAccessor.getIssueManager()def project = projectManager.getProjectByCurrentKey('TEST')def issueIds = issueManager.getIssueIdsForProject(project.id)def issues = issueManager.getIssueObjects(issueIds)def archivedIssues = issues.findAll { it.isArchived() }
I hope this helps!
Cheers,Helmy
Yes, that's exactly what i was looking for, thank you
It looks like you're new here. Sign in or register to get started.