Hi here,
I would like set the field priority based on the Impact field that is selected during the issue creation(from customer portal). If Impact is High, Priority should be set as High and same way if Impact is Low, priortity should be set as Low.
I am very much new to this scriptrunner scripts. somehow I gathered this which is not working for me, can someone help?
FYI this is on Jira cloud
const changedField = getChangeField() ;
if(changedField.getName () === 'Impact') {
const ImpactName = changedField.getValue().name.toString();
if (ImpactName === "High") {
getFieldById('Priority').FieldSetValue("High")
}
}