Details
-
Suggestion
-
Resolution: Unresolved
-
None
-
-
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.