Example scripts
To homepage
Jira

Automate the Creation of a Jira Service Management 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('JSM', 'IT Help') {
setSummary('Please help!')
}
// and an example setting more fields
Issues.create('JSM', 'IT Help') {
setSummary('Need more help!')
setDescription('a longer description')
setRequestType('Computer support')
setRequestChannel('api')
setRequestParticipants(Users.loggedInUser)
setOrganizations('My Org', 'My Other Org')
}
Having an issue with this script?
Report it here