Forums

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

JQL syntax doesn't seem to work for queues

Susan Merola
Contributor
July 31, 2025

Hi. For our Jira Service Managment Desk I've created an alias email address for a particular program so that we can easily differentiate between general support questions and questions specific to this particular program.

I've created a custom field that extracts the Email To address and am using that to have emails sent to the alias appear in the dedicated queue but I can't figure out how to exclude emails to this alias from the general queue. 

I thought I could just use JQL !=alias.com in the general queue filter but JSM doesn't seem to like that. 

Any suggestions?

Thanks in advance for any help!

3 answers

1 vote
Aaron Williams
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.
July 31, 2025

Hi @Susan Merola 

Instead of extracting the email to a custom field, why don't you have your automation set that field to a value if the alias address is used, and then use that in the queue. 

When issue created > IF alias email used > set custom field to "program name"

Then in your queue use the custom field. JQL: custom_field = "program name" 

Thanks

Aaron.  

0 votes
Joseph Chung Yin
Community Champion
July 31, 2025

@Susan Merola 

What is your custom field's datatype?  The one that you store the mail-to address value?

Can you also provide your exact JQL used for your queue?

Please advise, so we can assist further.

Best, Joseph Chung Yin

0 votes
Jim Knepley - ReleaseTEAM
Atlassian Partner
July 31, 2025

Hi @Susan Merola 

I would try something like this, where the custom field name is "email_to_address":

!(email_to_address ~ "*alias.com")

 

Susan Merola
Contributor
July 31, 2025

Thanks Jim. It doesn't seem to like that either. It tells me my queue is empty after adding that, which it isn't. 

I substituted the field name that I copied from the jql of the queue that is successfully getting populated with the alias address emails but maybe there's still some problem with my syntax?

I also substituted the real alias as well but just didn't want to post that publicly.

status in ("Awaiting Customer Response", "Awaiting bug resolution", "Awaiting Internal Assistance", "For review", Open, Reopened, "Work in progress") AND !(email_to_field[paragraph] ~ "*alias@company.com") AND resolution = Unresolved ORDER BY "Time to resolution" ASC

Like Susan Waldrip likes this

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