Hi,
I need to generate UUID and assign it to a custom field using a post function script when an issue is opened?
Has anyone done this before?
Thanks
Ashwini
Please try not to cross-post. We need to respond on all channels otherwise it looks like we don't care, which takes us a lot of additional time, and dilutes the value for other people using it.
To repeat:
import com.atlassian.jira.component.ComponentAccessor def customFieldManager = ComponentAccessor.getCustomFieldManager() def cf = customFieldManager.getCustomFieldObjectByName("My Field") issue.setCustomFieldValue(cf, UUID.randomUUID().toString())
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.