Can use trailers with dash in .gitlab/changelog_config.yml

I am trying to setup Changelog generation, and we have some trailers that contains dash ‘Jira-Issue’, and when we try to parse the trailers in the template we get the following error.

{"message":"Failed to generate the changelog: Failed to parse the template: Extra input after last repetition at line 1 char 1."}

this is the command

curl --header "PRIVATE-TOKEN: xx" --data "version=T.3.4.3&from=T.3.4.2&branch=release" "https://gitlab.xx.com/api/v4/projects/5807/repository/changelog"

and this is our template

categories:
  added: Added
  fixed: Fixed
  changed: Changed
  deprecated: Deprecated
  removed: Removed
  security: Security
  performance: Performance
  feature: Feature
  #other: Internal

template: |
  {% if categories %}
  {% each categories %}
  ### {{ title }} ({% if single_change %}1 change{% else %}{{ count }} changes{% end %})

  {% each entries %}
  - [{{ title }}]({{ commit.reference }}) by {{ author.reference }}  {% if commit.trailers.Jira-Issue %}| Jira Issue : {{ commit.trailers.Jira-Issue}}{% end %}
  {% end %}

  {% end %}
  {% else %}
  No changes.
  {% end %}