I would like to set the below condition after submitting the ticket. After the ticket is submitted, I need to check the assignee field for the below conditions and set it accordingly. I know I can set groovy script set to run in the post function in the create issue workflow. But I need the groovy script reference or example to achieve this.
If (assignee == Automatic)
{
Set assignee == reporter
}
If (assignee == 'prakash')
{
Set assignee == 'prakash'
}
How do I achieve this ?