Hello everybody,
Does anyone know how to write a Groovy script and apply it to a JIRA system so that when an email is sent with an exclamation mark (!) in the subject field of the email, a JIRA issue is created with the Criticality field value set as "Blocker".
Thanks in advance.
Hi There,
create a postfunction that runs the following groovy script
import com.atlassian.jira.issue.Issue import com.atlassian.jira.issue.util.DefaultIssueChangeHolder import com.atlassian.jira.ComponentManager import com.atlassian.jira.issue.MutableIssue; import com.atlassian.jira.issue.ModifiedValue Issue issue = issue if (issue.getSummary().contains("!")){ issue.setPriorityId( '1' ); }
Test it first.
Hope that works
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I think you should add the script as postfunction in Create Transition.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.