Example scripts
To homepage
Jira

Automate the Creation of a Work Item in Jira Cloud
App in script

ScriptRunner For Jira
by Adaptavist
Compatibility

Jira
Language |
groovy
def loggedInUser = Users.getLoggedInUser()
def accountId = "Account ID of user"
def reporterUser = accountId ? Users.getByAccountId(accountId) : null
def reporter = reporterUser ?: loggedInUser
WorkItems.create("PROJECT_KEY", "ISSUE_TYPE_NAME") {
setReporter(reporter)
setSummary('Groovy Friday')
setPriority('High')
}Having an issue with this script?
Report it here