Skip to main content
Example scripts
arrow icon
To homepage
Jira
Cloud icon
Cloud

Bulk Update Multiple Issue Resolutions

Created 1 year ago, Updated 1 day(s) ago
App in script
ScriptRunner For Jira
ScriptRunner For Jira
by Adaptavist
Compatibility
compatibility bullet
Jira
Language |
groovy
// The Name of the resolution to be set
def resolutionName = 'Cannot Reproduce'

// Get all issues matching the specified JQL Query
Issues.search("project = TEST AND issueType = Bug").each { issue ->
    issue.transition('Done') {
        setResolution(resolutionName)
    }
    logger.info("Resolution set to ${resolutionName} for the ${issue.key} issue")
}
Having an issue with this script?
Report it here