Uploaded image for project: 'Atlassian Ecosystem'
  1. Atlassian Ecosystem
  2. ECO-957

Forge workflow validator function does not receive configuration in payload during Jira issue transitions

XMLWordPrintable

    • Minor
    • Visual regression testing, Pollinator tests
    • M

      Issue Summary:
      Forge function doesn't receive the workflow validator configuration field in the payload during Jira issue transitions, blocking development and causing significant performance overhead. According to the Jira events, the configuration should be present under configuration, but it's missing from the payload received by workflow validator Forge functions.

       

      Expected Results:
      The payload received by the Forge function during a workflow transition should include the validator configuration, matching what is available in the UI context.

       

      Actual Results:
      The payload received by the Forge function doesn't include the validator configuration. Only basic issue and transition information is present. As a result, developers must implement a multi-step workaround to retrieve the configuration, which negatively impacts performance and increases API usage.

       

      Workaround:
      Currently, there isn't a known workaround from Atlassian for this behavior that avoids significant performance penalties. A workaround has been implemented by the partner which comprises:

      • Decode the context token
      • Extract the extension ID
      • Use the Jira REST API to fetch workflows and match against project/extension ID
      • Extract the validator config from there

      This process is slow and resource-intensive.

              2238f8e58844 Pratyush Kumar
              cc8aaff0e17f Leonardo Grzybowski
              Votes:
              25 Vote for this issue
              Watchers:
              15 Start watching this issue

                Created:
                Updated:
                Resolved: