Skip to content

Failed to open jira issue. The entered text is too long #621

Open
@afagund

Description

@afagund

Description

Jira tickets for few vulnerability reports coming from Trivy Operator is not being opened. We are observing the following error in Postee logs:

Failed to open jira issue, {"errorMessages":[],"errors":{"description":"The entered text is too long. It exceeds the allowed limit of 32,767 characters."}}

This is happening with the postee.trivyoperator.jira template. Is there a way to prevent such error and make sure the ticket is opened?

What did you expect to happen?

The Jira ticket to be opened

What happened instead?

The Jira ticket is not being opened

Output of run with POSTEE_DEBUG=true:

(paste your output here)

Additional details (environment setup, networking info...):

Docker image:
postee:2.14.0-amd64

Configuration:

name: tenant
max-db-size: 1000MB
db-verify-interval: 1

routes:
- name: Trivy Operator Alerts
  input: input.report.summary.criticalCount > 0
  actions: [jira]
  template: trivy-operator-jira
  plugins:
    unique-message-props: ["report.artifact.digest", "report.vulnerabilities"]
    unique-message-timeout: 30d

templates:
- name: trivy-operator-jira
  rego-package: postee.trivyoperator.jira

actions:
- name: jira
  type: jira
  enable: true
  url: "xxxx"
  user: "xxxx"
  password: "xxxx"
  project-key: "xxxx"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions