Attachments are not copying from JSM to JWM and vice versa
Asked by shivani shirguppi:

I have created the automation to push the attachments attached in comments from JSM to JWM and vice versa but it is not working.


Answers:
author: Walter Buggenhout
body: Hi [@shivani shirguppi](/t5/user/viewprofilepage/user-id/5241115),

Happy to help, but please share screenshots of your full automation rule and any error messages (if any) you see in your automation rule's audit log. We can't help you based on the information you provided.

In the meantime, for reference check out [this support article](https://confluence.atlassian.com/jirakb/how-to-sync-comments-and-copy-attachments-between-linked-issues-1167831058.html).

Hope this helps!

comments: author: shivani shirguppi
body: [@Walter Buggenhout](/t5/user/viewprofilepage/user-id/783225)

JSM to JWM

![Screenshot 2024-04-01 173811.png](https://community.atlassian.com/t5/image/serverpage/image-id/315520i6C087255F3C64627/image-size/large?v=v2&px=999 "Screenshot 2024-04-01 173811.png")![Screenshot 2024-04-01 173757.png](https://community.atlassian.com/t5/image/serverpage/image-id/315521iE161395E148909F7/image-size/large?v=v2&px=999 "Screenshot 2024-04-01 173757.png")


author: shivani shirguppi
body: [@Walter Buggenhout](/t5/user/viewprofilepage/user-id/783225)

JWM to JSM

![Screenshot 2024-04-01 173955.png](https://community.atlassian.com/t5/image/serverpage/image-id/315522i0293906A7C047F01/image-size/large?v=v2&px=999 "Screenshot 2024-04-01 173955.png")![Screenshot 2024-04-01 173943.png](https://community.atlassian.com/t5/image/serverpage/image-id/315523iD0E228FA0D7DADE4/image-size/large?v=v2&px=999 "Screenshot 2024-04-01 173943.png")


author: Walter Buggenhout
body: That's a good first step, [@shivani shirguppi](/t5/user/viewprofilepage/user-id/5241115). But what exactly do you do in the Edit issue / attachments step? There probably is the clue.


author: shivani shirguppi
body: [@Walter Buggenhout](/t5/user/viewprofilepage/user-id/783225) Edit the attachment field which should copy from trigger issue

![Screenshot 2024-04-01 180125.png](https://community.atlassian.com/t5/image/serverpage/image-id/315527i51874B2AE3DB05C9/image-size/large?v=v2&px=999 "Screenshot 2024-04-01 180125.png")


author: Walter Buggenhout
body: That looks like the proper way to do this, [@shivani shirguppi](/t5/user/viewprofilepage/user-id/5241115). It sometimes happens that the data is not properly stored on the issue and that it's not there when your rule tries to access them. You may fix that by adding a *refetch issue data* action to your rule just before the *For linked issues*branch.


author: shivani shirguppi
body: [@Walter Buggenhout](/t5/user/viewprofilepage/user-id/783225) I have added *refetch issue data* action and tested, following is the error![Screenshot 2024-04-03 180320.png](https://community.atlassian.com/t5/image/serverpage/image-id/316036iF9B95558B17F2568/image-size/large?v=v2&px=999 "Screenshot 2024-04-03 180320.png")![Screenshot 2024-04-03 180302.png](https://community.atlassian.com/t5/image/serverpage/image-id/316037i40C8E4F7A9D96929/image-size/large?v=v2&px=999 "Screenshot 2024-04-03 180302.png")


Tags: cloud

jira-service-management

jira-service-management-cloud