Example scripts
To homepage
Jira

Flag An Issue Escalation Service
App in script

ScriptRunner For Jira
by Adaptavist
Compatibility

Jira
Language |
groovy
def currentIssue = Issues.getByKey(issue.key as String)
//you can *add* a flag
currentIssue.update {
setCustomFieldValue('Flagged', 'Impediment')
}
//*OR* you can *remove* a flag
currentIssue.update {
clearCustomField('Flagged')
}
Having an issue with this script?
Report it here