Webhook JQL query with space causes 400 error

nicholas kurtz May 2, 2024

While working with Jira Server I'm having an issue with a webhook when attempting to complete a search. With the query /rest/api/2/search?jql=Parent+Link={{issue.key}} or /rest/api/2/search?jql=Parent%20Link={{issue.key}} I'm getting the response.

 

{
  "errorMessages": [
    "Error in the JQL Query: Expecting operator but got 'Link'. The valid operators are '=', '!=', '<', '>', '<=', '>=', '~', '!~', 'IN', 'NOT IN', 'IS' and 'IS NOT'. (line 1, character 8)"
  ],
  "errors": {}
}: 

Any help formatting my request would be really appreciated. 

1 answer

0 votes
fdehne May 2, 2024

Hey Nicholas,

have you tried using quotation marks? Like 

/rest/api/2/search?jql="Parent+Link"={{issue.key}}

 

Cheers

Suggest an answer

Log in or Sign up to answer