Skipping through Duplicate Attatchments

pranav12
Giga Contributor

Hi all,

I have created a copy attatchment flow in flow designer(Update record as trigger).Now when I upload a attatchment and update the record the flow is getting triggered and the attatchment is being uploaded into JIRA and later when I change details of that record and update, the attatchment is again being uploaded into jira, now in my jira story I have 2 attatchments, like it is being duplicated how do I tackle this in flow-designer.(how can I skip through already uploaded attatchment or any roundabout way is accepted.) 

Thanks in advance.

1 ACCEPTED SOLUTION

pranav12
Giga Contributor

I found the solution for this Avoid Duplicate Attachment - JIRA SPOKE please refer this link and mark if helpful

Thanks for everyone who replied to this question.

View solution in original post

8 REPLIES 8

bammar
Kilo Sage
Kilo Sage

You may have to make a BR on attachment table that ON Insert- If the new attachment has the same HASH (this is a field in attachment table) as another attachment with same parent then abort...

pranav12
Giga Contributor

Hello there, Thanks for answering but sorry for not making myself clear, the thing is the attachment is not being uploaded to servicenow but Jira.To be precise when creating a story record in servicenow the story is also being created in JIRA.Now if that record has an attachment to it, that attachment is being uploaded to JIRA as well. So now when I update the story record in servicenow the same attachment is being uploaded to JIRA a second time. I don't want that duplication of the record.

Hope I made myself clear

bammar
Kilo Sage
Kilo Sage

You may have to make a BR on attachment table that ON Insert- If the new attachment has the same HASH (this is a field in attachment table) as another attachment with same parent then abort...

pranav12
Giga Contributor
Hello there, Thanks for answering but sorry for not making myself clear, the thing is the attachment is not being uploaded to servicenow but Jira.To be precise when creating a story record in servicenow the story is also being created in JIRA.Now if that record has an attachment to it, that attachment is being uploaded to JIRA as well. So now when I update the story record in servicenow the same attachment is being uploaded to JIRA a second time. I don't want that duplication of the record. Hope I made myself clear