You need some code for this.
Are you able to use ScriptRunner plugin?
It looks like you're new here. Sign in or register to get started.