Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Slack integration will not save JQL query with filter

James Kennard (Propagator)
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 1, 2023

Hi,

I want to send notifications to a slack channel for bugs that are created. However I want to exclude bugs that were created from slack itself - you can find these with this search:

text ~ "Issue created in Slack from a Message".

But because you can't say text does not equal, you have to create a filter for the above and then say not in the filter, so assuming the filter is called Issue created in Slack from a Message the JQL is:

type = Bug AND filter != "Issue created in Slack from a Message"

When I try to save this I get a popup:

Invalid JQL
Could not save project connection settings

Looking the request that was made, it makes a PATCH request with a 400 response:

{"error":{"message":"Invalid JQL","code":"INVALID_JQL"}}

Can anyone help?

Thanks

2 answers

1 vote
Andrew Blick
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 2, 2023

I ran into the same issue with saving JQL that referenced a filter. When filters are created, they are private by default. You have to update the permissions of the filter so that that they can be viewed by your organization.

Tip: At first I thought I had updated the permissions, but I forgot to hit "Add" before "Save".

0 votes
Magdalena Zhisheva
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 13, 2023

Hi @James Kennard (Propagator) ,

Try with this JQL: 

type = bug and description !~ "Issue created in Slack from a Message"

"!~" is the operator which you can use, when you search in text fields.

 

Hope it helps!

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events