I need help on a script that can be used in exalate plugin to check if a comment is added with a restriction in jira software issue then it should add as internal note on synced service desk ticket and if it is added without any restrictions then it should be added as a customer comment in synced service desk ticket.
This is required for Jira cloud and not Jira On Premises
There is a lot of things going on there. Can you please elaborate what piece is not working for you exactly i.e. recognizing that the comment is coming from Engineer role, or making the target comment internal. It would also be nice to see a sample of the replica to see how the comment payload is arriving.
Also, you say that the script is not working. Do you have any errors?