Example scripts
To homepage
Jira

Automate the Creation of an Issue in Jira
App in script

ScriptRunner For Jira
by Adaptavist
Compatibility

Jira (8.0 - 8.19)

ScriptRunner For Jira (7.10.0)
Language |
groovy
// By default this is all you need to specify
Issues.create('SR', 'Bug') {
setSummary('Please help!')
}
// and an example setting more fields
Issues.create('SR', 'Task') {
setSummary('Please help!')
setDescription('a longer description')
setPriority('High')
setEnvironment('the environment')
setComponents('Web', 'Database')
setAffectedVersions('1.0')
setOriginalEstimate('2d')
// and custom field values
setCustomFieldValue('TextFieldA', 'more text')
}
Having an issue with this script?
Report it here