Forums

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

Contains operator (~) is not working for project field

Deepak Raj
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!
August 23, 2023

Hello Team,

 

I am having a scenario where I have to fetch all the JIRA tickets having project name ends with 'SCR'. I tried below JQL query ,but it is not working ,

http://jira-test.xyz.com/rest/api/2/search?jql=(project~SCR) 

I am getting below error response,

{

    "errorMessages": [
        "The operator '~' is not supported by the 'project' field."
    ],
    "errors": {}
}

Please let me know is there is any way I can achieve this.

Thanks & Regards,

Deepak

 

1 answer

1 accepted

2 votes
Answer accepted
Kseniia Trushnikova
Community Champion
August 23, 2023

Hi @Deepak Raj,

Check out answers of the similar question here. As a workaround, you can use project category or an additional filter.

Deepak Raj
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!
August 23, 2023

Thank you @Kseniia Trushnikova  for the quick response. I will try this solution.

Suggest an answer

Log in or Sign up to answer