I need to make a transition (Open > Backlog) and change a custom field "time" depending on the value of the custom field "module".
Example that works with Script Runner:
def cfsat = customFieldManager.getCustomFieldObjects (issue) .find {it.name == 'Module'}
def module = issue.getCustomFieldValue (cfsat)
def time = ''
switch (module) {
case 'Satelite - AUD': A: {
time = 'timeaud'
break
}
case 'Satelite - Conector': B: {
time = 'timeconector'
break
}
case 'Satelite - Consulta': C: {
time = 'timeconsulta'
break
}
}
But Script Runner is now paid to work with Jira 7. So, I installed Automation JIRA plugin but it does not make the conditions: switch, if..else, etc.
Some help to make a transition (Open > Backlog) and change custom field (time) depending on the value of another custom field (modulo) ?
Thanks.