Note
We've packed up and moved from Confluence to Discourse to bring you a better, more interactive space. Out of courtesy we didn't migrate your user account so - you will have to signup again
The Exalate team will be on holiday for the coming days - returning Jan 4
Enjoy & stay safe
I need the Jira tickets assigned to different based on the Summary field coming from ADO. I tried the below script but it seems to have a syntax error and does not allow me to save. But hopefully, this will show you what I try to achieve.
I need this in Jira Cloud Incoming script.
------------------------------------------------------------------------------------------
def AssigneeSVT = nodeHelper.getUserByEmail("SVTEmail@abc.com.au")
def AssigneeSIT = nodeHelper.getUserByEmail("SITEmail@abc.com.au")
def AssigneeUAT = nodeHelper.getUserByEmail("UATEmail@abc.com.au")
if (replica.summary.substring(0,3) = "SVT") {
issue.assignee = nodeHelper.getUserByEmail(replica.assignee?.email) ?: AssigneeSVT
}
if (replica.summary.substring(0,3) = "SIT") {
issue.assignee = nodeHelper.getUserByEmail(replica.assignee?.email) ?: AssigneeSIT
}
if (replica.summary.substring(0,3) = "UAT") {
issue.assignee = nodeHelper.getUserByEmail(replica.assignee?.email) ?: AssigneeUAT
}