When I use below API, I get below error,
https://localhost.jira.com/rest/api/2/search?&fields=reporter,status,summary&issuetype=Change&jql=("'Program Name'=Test")&maxResults=1000
{"errorMessages":["Error in the JQL Query: Expecting operator but got ')'. The valid operators are '=', '!=', '<', '>', '<=', '>=', '~', '!~', 'IN', 'NOT IN', 'IS' and 'IS NOT'. (line 1, character 23)"],"errors":{}}
When I use below API, I get all other records except "Change" records
https://localhost.jira.com/rest/api/2/search?&fields=reporter,status,summary&&issuetype=Change&jql:("'Program Name'=Test")&maxResults=1000
May I know what is wrong with the api?
Thanks
HI @Vimalraj
I think your call is not correct.
I assume you want to see all issue with type change and the changes have a field program name set with value test and you want to show the fields:
reporter, status and summary
Am i correct?
The the call should be: https://localhost.jira.com/rest/api/2/search?jql="Program Name"=Test and type=change&fields=reporter,status,summary
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Vimalraj
I don't have inconsistencies in my trials.
This gets all issues with status in progress
This gets all Tasks with status in progress
I do see an issue in you URL. %27 equals : and you should use %22 that represents "
So your URL should look like:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Vimalraj ,
please could you try the following https://localhost.jira.com/rest/api/2/search?fields=reporter,status,summary&jql=issuetype=Change%20AND%20%27Program%20Name%27=Test&maxResults=1000 ?
Hope this helps,
Fabio
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks @Fabio Racobaldo _Herzum_ . It returns with value even for other program names and not just "Test". Also, If I include status like below
It returns with all status and not just "In Backlog". Pls assist.
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I'm able to get it working as below. Thanks for your support
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.