Configured sending of e-mail in post-function configured the condition for sending the scriptrunner did not accept and send the e-mail for all issues even the condition without errors.
In the three tests the email was sent skipping the condition as if it did not exist.
First test - issue.reporter == 'Cybersecurity.telefonica'
Second test - issue.reporter? .name == 'Cybersecurity.telefonica'
Third test - cfValues ['Grupo Solucionador'] == 'SegurancaInformacao_BM'
I need an email to be sent when
issue.report = 'Cybersecurity.telefonica' and Grupo Solucionador = 'SegurancaInformacao_BM'
https://library.adaptavist.com/entity/update-priority-based-on-a-custom-field should be a good base for this
It reads a custom field and expects it to be a select-list type field, but that should not be hard to change to issue.getSummary() and parse the result for your words, or use issue.getReporter().getName()
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.