I tried the following code and the form is not updating
The behavior is mapped to the correct project (Jira Service Desk)
import com.atlassian.jira.component.ComponentAccessor
def affectedUser = getFieldByName("<You custom field name here>")
def currentuser = ComponentAccessor.jiraAuthenticationContext.loggedInUser.username
affectedUser.setFormValue(currentuser)
affectedUser.setHelpText(currentuser)
This code is updating the help text but not updating the form value.
Am I doing anything wrong?
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.