Uploaded image for project: 'Automation for Cloud'
  1. Automation for Cloud
  2. AUTO-915

Better handling of Incoming webhook JQL search

    XMLWordPrintable

Details

    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

    • Jira Software, Jira Service Management, Jira Work Management

    Description

      Problem

      A JQL search can be applied to incoming webhooks and the data from the webhook payload can be utilized via smart values. However, when the webhook returns no value, the rule breaks down with an error as it tries to run a JQL search with an empty value.

      In the example below, if the webhook returns a valid Issue key from its source, it will execute successfully with the underlying JQL:

       key in (KEY-123) 

      Whereas if the webhook returns no value (null), it will fail with an error while attempting to execute the underlying JQL:

       key in () 
       Error in JQL Query: Expecting either a value, list or function but got ')'. You must surround ')' in quotation marks to use it as a value. (line 1, character 9) 

      Proposed solution

      The JQL search applied to an Incoming webhook trigger should be able to handle empty values and treat them as a "no match found" rather than throwing an exception or unexpected value.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              lellis2@atlassian.com Belto
              Votes:
              2 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: