Skip to main content
Home page
Example scripts
To homepage
Jira
Cloud icon
Cloud

Bulk Update Multiple Work Item Resolutions

Created 2 year(s) ago, Updated 20 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 work items matching the specified JQL Query
WorkItems.search("project = TEST AND issueType = Bug").each { workItem ->
    workItem.transition('Done') {
        setResolution(resolutionName)
    }
    logger.info("Resolution set to ${resolutionName} for the ${workItem.key} work item")
}
Having an issue with this script?
Report it here