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

Set Field Value From User Property Using Behaviours

Features
Behaviours
Created 10 month(s) ago, Updated 4 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
def assigneeField = getFieldByName('Assignee').value

if (assigneeField && assigneeField != '-1') {
    def assigneeEmail = Users.getByName(assigneeField as String).emailAddress
    getFieldByName('Contact for more information').setFormValue(assigneeEmail)
}
Having an issue with this script?
Report it here