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?
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.
import com.atlassian.jira.component.ComponentAccessor def customFieldManager = ComponentAccessor.getCustomFieldManager() def cf = customFieldManager.getCustomFieldObjectByName("My Field") issue.setCustomFieldValue(cf, UUID.randomUUID().toString())
Background When you hear the words ‘Release notes’, almost always you think of an unsolicited email from a software vendor. But I am here to tell you that from our data, sending release notes via E...
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