Skip to main content
Example scripts
arrow icon
To homepage
Jira
Data centre icon
Data Center

Automate the Creation of an Issue in Jira

Created 1 year ago, Updated 3 month(s) ago
App in script
ScriptRunner For Jira
ScriptRunner For Jira
by Adaptavist
Compatibility
compatibility bullet
Jira (8.0 - 8.19)
compatibility bullet
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