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 ?
You might want to take a look at the Script Runner Add On (https://marketplace.atlassian.com/plugins/com.onresolve.jira.groovy.groovyrunner) which has the post function for this.
Hi Timothy,
I am brand new to groovy script, it will be helpful to me if you could provide me some scripts related to this .
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.