Hi
I create a Script that works fine to deliver mail to "Internal" Users, but for some reason (i dont know) this is not working for "external" users (i mean users that dont belong to the domain (@internal.com).
I explain better my user andres@external.com doesnt receive a mail via this script, althought i can log on and YES, receive Subscriptions as well. Also If i fire a mail form the system config send mail i receive ok, but not when running the script.
Is it a limitation of something in Jira Cloud / @Script Runner or just my script is incorrect ?
post("/rest/api/2/issue/OIMP-11/notify")
.header("Content-Type", "application/json")
.body([
subject: 'Mail title',
textBody: "Body",
htmlBody: "<p>Body <b>Prueba</b></p> <table style='width:100%'> <tr> <th>Firstname</th> <th>Lastname</th> <th>Age</th> </tr> <tr> <td>Jill</td> <td>Smith</td> <td>50</td> </tr> <tr> <td>Eve</td> <td>Jackson</td> <td>94</td> </tr> </table>",
to: [
users: [[
name: "Internal",
active: true
]]
]
])
.asString()