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 _Catworkx_ . 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.
Earning the Mindful Member badge proves you know how to lead with kindness, plus it enters you into a giveaway for exclusive Atlassian swag. Take the quiz, grab the badge, and comment on our announcement article to spread the good vibes!
Start here
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.