I am using script runner to auto fill the CF a value through this way:
Edit the create transition's validator:
def cf = customFieldManager.getCustomFieldObjects(issue).find {it.name == 'Project Name'}
issue.setCustomFieldValue(cf, issue.projectObject.name)
issue.description != nullThen if we create a issue, the CF "Project Name" will be automaticly set to the Project's name.
But we want to do this.
Add the CF "Project Name" to create screen. If the user fill this CF with a value (such as "Internal") when create issue. Then the CF value will be set to "Internal".
If the user leave this CF blank, the CF value will be set to Project's name.
How to do this?
Thanks!