Jira to ServiceNow integration using scripted api
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2023 02:24 AM
Hi,
I am sending the attachments from Jira to ServiceNow, it is attaching twice a time, Could anyone help me ?
I have shared the code below please check and let me know?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2023 02:58 AM
Hi
without having the chance to execute your code it is pretty difficult to answer.
What debugging activities have you performed so far?
Have you checked how many iterations the outer for loop has? Is it running once or twice?
Maik
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2023 04:40 AM
Hi @Maik,
When I uploaded the first attachment it will execute one time only, When I uploaded second attachment then it will execute twice like attaching First + second attachment.
Thanks,
Manju
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-25-2023 10:59 PM
Hi Manju
Please ensure that each attachment is processed only once. You could maintain a list or a set of processed attachment IDs and check against it before processing a new one!
You can also make this integration easier by implementing a 3th party decentralized solution like Exalate.
It is an integration solution, where you can granuarly decide which data will be send over. For attachments, all the meta data will also be sent over!
Kind regards,
Matthew