I am not sure what the automation plugin can do, but Update on Transition for JIRA can do both of your questions. See Transition issues for the first one and Update issues with Substitution variables for the second.
It looks like you're new here. Sign in or register to get started.