We have a field called "Incident Owner" that we want to pre-populate with the current user's name on the create screen.
We have Adaptivist's Behaviours plug-in, but I'm having difficulty putting together an Initialiser that works.
Any help would be much appreciated!
Please try this and let me know if it works.
def incidentOwner = getFieldById("customfield_12345")
def currentUserObj = ComponentAccessor.getJiraAuthenticationContext().getLoggedInUser()
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events