We are currently developing script listners for integration between Jira tickets and ServiceNow tickets.
What we would like to do is that the attachement files are uploaded to Jira tickets, then automatically send them to ServiceNow tickets.
Basically, we can do it that the files uploaded to Jira are sent to ServiceNow via ServiceNow API.
But we faced the problem that if we upload the multiple files at once, then they are sent to ServiceNow multiple times because the script listner run as many times as the amount of uploaeded file at once.
(ex. if we upload 3 files at once, then script listner run 3 times.)
the script run if “Issue Updated“.