Hi All, how is it possible to copy creator system field to a string , custom field text using scriptrunner upon creation. using behavior? using listener? postfunctions? please help
Do You want save creator for log? JIRA issue has 'History' tab and there saved who created.
Hi @Andrew . I want to copy the Creator (system field) to a custom field text to display the copy of creator to view screen
I made it with postfunc, it work for me.
My example:
import com.atlassian.jira.component.ComponentAccessordef reporter = issue.reporter.namedef cfm = ComponentAccessor.getCustomFieldManager()def cfMy = cfm.getCustomFieldObjectByName("myfield")issue.setCustomFieldValue(cfMy,reporter)
Use postfunction it work for me.
Example code:
It looks like you're new here. Sign in or register to get started.