Example scripts
To homepage
Jira

Update the Value of Custom Fields through the Script Console in Jira Cloud
App in script

ScriptRunner For Jira
by Adaptavist
Compatibility

Jira
Language |
groovy
final customfieldID = 'customfield_1000' //get this from /fields api
final newFieldValue = 'New Value'
final issueKey = 'MYPROJECT-1'
put("/rest/api/2/issue/${issueKey}")
.header('Content-Type', 'application/json')
.body([
fields: [
(customfieldID): newFieldValue
]
]).asString()
Having an issue with this script?
Report it here