znuny / znuny-feature-requests

This repository tracks feature requests as issues.
7 stars 1 forks source link

TicketArticleCreate: In the Body-field, show the value of a DynamicFieldVariable instead of its key #39

Closed schnudd31do3 closed 1 year ago

schnudd31do3 commented 1 year ago

When automatically creating an article with a DynamicFieldVariable for the body, without my modification it only shows the key of it. But my modification shows the value instead of the key, which is more human readable.

My example for a DynamicFieldVariable "XXXClassifyHelp": image One of its keys is "XXXHlpBug", its value is "Bug"

My transition action uses TicketArticleCreate to automatically create a note with the content of a DynamicFieldVariable image

With my extension the body of the note shows "Bug" instead of "XXXHlpBug", which is more human readable. image

My piece of code in TicketArticleCreate.pm, line ~229: image Insertion between the "###" marks. Commented-out line with "#".

hanneshal commented 1 year ago

Just a question: before your patch, have you tried ?

image

?

schnudd31do3 commented 1 year ago

Great job 😊, thanks. I did not know the (new?) feature. It did what I need.

BTW: Is it somehow possible to place additional fixed string to it? E. g. " dummy" result: "[value of DynamicField_xyz] dummy"

hanneshal commented 1 year ago

This is at least available since OT** 5

You can just pass a string after the placeholder. This should work for the body tag without problems

schnudd31do3 commented 1 year ago

Thanks.