Hi! I am newbie here!
I am trying to get issues by passing some parameters using JQL.
First, I am building normal string for jql
e.g jqlExpr:::::::: project=Jira&fields=id,key,project,assignee,description,summary,status,priority,reporter,created,updated,issuetype,subtasks&maxResults=-1&assignee=abc
After encoding it with java method : #[java.net.URLEncoder.encode(flowVars.jqlExpr)]
also i am setting the encoding as 'ISO 10646/Unicode(UTF-8)'
I am passing it the request call as:
Error message i am getting :
"Error in the JQL Query: Expecting either 'OR' or 'AND' but got ','. (line 1, character 21)"
I am not able to understand what's going wrong and how can I resolve?
I appreciate your response.Thanks!
assignee=abc is part of the jql, but you've got it as a parameter being passed to the API. Try
jql=project=Jira AND assignee=abc&fields=id,key,project,assignee,description,summary,status,priority,reporter,created,updated,issuetype,subtasks&maxResults=-1
If you still get an error, try copying just the JQL bit (i.e. everything after jql= up to and excluding the first &) into a Jira query and see if there are any errors
Thanks a lot!
the best answer! it did not only just resolve the error but also helpful in a way to connect the dots here.
I tried to use JIRA's UI to search issues to know url--> concluded that it should be encoded but JIRA's UI allowed only these two Fields 'project' and 'assignee' in advanced search issue text field, wondering why it wont allow 'fields=id,key..etc'
Now i got what JQL is!
so no need to do encoding in this case!
Badges are a great way to show off community activity, whether you’re a newbie or a Champion.Learn more
As part of the Bitbucket product team I'm always interested in better understanding what kind of impact the use of our tools have on the way you work. In a recent study we conducted of software devel...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG