How to set assignee based on the condition

prakash ganeshan March 3, 2014

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 ?

1 answer

0 votes
Timothy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 4, 2014

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.

prakash ganeshan March 4, 2014

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 .

Suggest an answer

Log in or Sign up to answer