znuny / Znuny

Znuny/Znuny LTS is a fork of the ((OTRS)) Community Edition, one of the most flexible web-based ticketing systems used for Customer Service, Help Desk, IT Service Management.
https://www.znuny.org
GNU General Public License v3.0
343 stars 83 forks source link

Bug - Selected file on ProcessManagementAttachment doesn't attach to article in transition action #385

Closed lis975 closed 1 year ago

lis975 commented 1 year ago

Environment

Expected behaviour

a files selected on Attachments field, on process dialog should be added to article or new ticket, depending on transition action, when "Attachments" setting is set to 1 on transition action.

Actual behaviour

insted of adding attachment to article, transition action logs error:

Found no StdAttachment found for 1!

How to reproduce

Steps to reproduce the behavior:

  1. create proces with two dialogs and three activities
  2. on first activity add message component (to add attachment to ticket)
  3. on second activity define new dialog, and add Attachments component to it
  4. in transition action to third activity call ArticleCreate or TicketCreate, setting Attachment setting to 1

Additional information

This functionality last worked in version 6.4.5

Screenshots

Export_ProcessEntityID_Process-72f4e7bf1c0359175f7fb6037324b765.yml.zip Zrzut ekranu z 2023-04-24 13-06-50 Zrzut ekranu z 2023-04-24 13-09-51

dignin commented 1 year ago

There is an issue in the modules perl documentation.

Please use the following. I've created an internal issue 606 to fix the documentation.


  'Attachments' => 'Orderform.pdf,Acceptrules.pdf', #File names of standard attachments
  'AttachmentIDs' => '23,26', #ids of standard attachments
  'AttachmentsReused' => 'true' #use attachments selected in actiivty dialog
lis975 commented 1 year ago

Thank you very much for this explanation. I think, that placeholders in Transition Actions need to be corrected as well as documentation. By the way, the correct parameter is AttachmentsReuse - without "d" ending. I've checked it in module source.