Use Copy Change for fields of type File Attachment, then fields cannot see [Update] [Delete]

Tracy Li Gao
Kilo Guru

Follow up below steps to reproduce the issue,

1. Add a custom field of type File Attachment

for example, u_attachment_test

2. Add the field name to sys_properties record with name com.snc.change_request.copy.attributes

3. Open a change ticket, add a new attachment for the field, you can see the options [Update] [Delete].

4. Click Copy Change from form context menu, check the field, the attachment is copied, but no options [Update] [Delete] available anymore.

The expectation is to be able to see the 2 options and the 2 options works.

 

Do you know how to achieve this?

Thank you in advance.

1 ACCEPTED SOLUTION

Sai Shravan
Mega Sage

Hi @Tracy Li Gao ,

 

When using the "Copy Change" feature for fields of type "File Attachment," the "Update" and "Delete" options will not be available. This is because "Copy Change" creates a new version of the field and its contents, rather than modifying the existing field. Therefore, the original field and its attachments will remain unchanged and cannot be updated or deleted.

 

When you add a custom field of type "File Attachment" (for example, "u_attachment_test") and add the field name to the sys_properties record with the name "com.snc.change_request.copy.attributes," you are indicating that the field should be included in the "Copy Change" process.

 

This means that when a user selects the "Copy Change" option from the form context menu, the contents of the "u_attachment_test" field will be copied to the new change request. However, the attachments themselves will not be updated or deleted from the previous change request, and the options [Update] [Delete] will not be available for the copied attachments.

 

Workaround: If you want to retain the ability to update and delete attachments on the change request form, it's possible to use a related list of attachments on the change request form and use to manage the attachments.

 

Regards,
Shravan

Regards,
Shravan
Please mark this as helpful and correct answer, if this helps you

View solution in original post

5 REPLIES 5

Sai Shravan
Mega Sage

Hi @Tracy Li Gao ,

 

When using the "Copy Change" feature for fields of type "File Attachment," the "Update" and "Delete" options will not be available. This is because "Copy Change" creates a new version of the field and its contents, rather than modifying the existing field. Therefore, the original field and its attachments will remain unchanged and cannot be updated or deleted.

 

When you add a custom field of type "File Attachment" (for example, "u_attachment_test") and add the field name to the sys_properties record with the name "com.snc.change_request.copy.attributes," you are indicating that the field should be included in the "Copy Change" process.

 

This means that when a user selects the "Copy Change" option from the form context menu, the contents of the "u_attachment_test" field will be copied to the new change request. However, the attachments themselves will not be updated or deleted from the previous change request, and the options [Update] [Delete] will not be available for the copied attachments.

 

Workaround: If you want to retain the ability to update and delete attachments on the change request form, it's possible to use a related list of attachments on the change request form and use to manage the attachments.

 

Regards,
Shravan

Regards,
Shravan
Please mark this as helpful and correct answer, if this helps you

There is one issue when I want to use both fields of type "File Attachment" and related list "Attachments" together.

1. If I do not add any attachments for fields of type "File Attachment", upload some attachments in related list "Attachments". Then click on Copy Change, new change request ticket do copy attachments to related list "Attachments" successfully.

2. If I add any attachments for a field of type "File Attachment", upload some attachments in related list "Attachments". Then click on Copy Change, new change request ticket failed to copy attachment to related list "Attachments". No attachment can be found in related list "Attachments".

 

Is this a defect? Any workaround for this?

Tracy Li Gao
Kilo Guru

There is one issue when I want to use both fields of type "File Attachment" and related list "Attachments" together.

1. If I do not add any attachments for fields of type "File Attachment", upload some attachments in related list "Attachments". Then click on Copy Change, new change request ticket do copy attachments to related list "Attachments" successfully.

2. If I add any attachments for a field of type "File Attachment", upload some attachments in related list "Attachments". Then click on Copy Change, new change request ticket failed to copy attachment to related list "Attachments". No attachment can be found in related list "Attachments".

 

Is this a defect? Any workaround for this?