Batch edit on Links or Attachment

Slawomir Suchy
Slawomir Suchy Member Posts: 4

Hello, 

Is there a way to remove links or attachments from a large numbers of items. We performed a JIRA sync, and included the JIRA location of the items. However, now we want to remove them as it is not necessary. 

Batch edit does not allow that. Is there any other way than manually performing it? 

------------------------------
Slawomir Suchy
------------------------------

Comments

  • Alessandro Valli
    Alessandro Valli Member, Data Exchange, Jama Connect Interchange™ (JCI) Posts: 789
    edited February 2023

    Hi Slawomir,

    why don't you try to write a REST API script for this.

    Get the affected items via advanced filter (GET /filters/{filterId}/results), then delete the attachments (DELETE /items/{id}/attachments/{attachmentId}) or links (DELETE /items/{id}/links/{linkId}).

    Best  regards,

    ------------------------------
    Alessandro
    Systems Engineer
    SICK AG
    ------------------------------
    -------------------------------------------
    Original Message:
    Sent: 02-09-2023 23:27
    From: Slawomir Suchy
    Subject: Batch edit on Links or Attachment

    Hello, 

    Is there a way to remove links or attachments from a large numbers of items. We performed a JIRA sync, and included the JIRA location of the items. However, now we want to remove them as it is not necessary. 

    Batch edit does not allow that. Is there any other way than manually performing it? 

    ------------------------------
    Slawomir Suchy
    ------------------------------
    Alessandro
    Systems Engineer
    SICK AG
  • Slawomir Suchy
    Slawomir Suchy Member Posts: 4
    edited February 2023

    Thank you. This is a good idea, and I will look into it for the future. 

    ------------------------------
    Slawomir Suchy
    ------------------------------
    -------------------------------------------
    Original Message:
    Sent: 02-10-2023 00:50
    From: Alessandro Valli
    Subject: Batch edit on Links or Attachment

    Hi Slawomir,

    why don't you try to write a REST API script for this.

    Get the affected items via advanced filter (GET /filters/{filterId}/results), then delete the attachments (DELETE /items/{id}/attachments/{attachmentId}) or links (DELETE /items/{id}/links/{linkId}).

    Best  regards,

    ------------------------------
    Alessandro
    Systems Engineer
    SICK AG
    ------------------------------

    Original Message:
    Sent: 02-09-2023 23:27
    From: Slawomir Suchy
    Subject: Batch edit on Links or Attachment

    Hello, 

    Is there a way to remove links or attachments from a large numbers of items. We performed a JIRA sync, and included the JIRA location of the items. However, now we want to remove them as it is not necessary. 

    Batch edit does not allow that. Is there any other way than manually performing it? 

    ------------------------------
    Slawomir Suchy
    ------------------------------