Example scripts
To homepage
Jira

Bulk Update the Value of a Custom Field on Jira Cloud Issues
App in script

ScriptRunner For Jira
by Adaptavist
Compatibility

Jira
Language |
groovy
// Specify all the required parameters
def projectKey = 'TEST'
def customFieldName = 'Story Points'
def newCustomFieldValue = 100
// Extract issue key using JQL Query
Issues.search("project = $projectKey and '${customFieldName}' is not EMPTY").each { issue ->
issue.update {
setCustomFieldValue(customFieldName, newCustomFieldValue)
}
}
Having an issue with this script?
Report it here