Forums

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

regarding jql query and fixversion

Krk Rama Krishna February 12, 2019

my fixversion is like this "march release" i want to query like rest/api/2/search?jql=project=PROJNAME&fixVersion=march release&maxResults=10

1 answer

1 vote
Alexey Matveev
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.
February 12, 2019

Hello,

Your JQL query should look like this:

search?jql=project%3DProjectKey%20and%20fixversions%3D%22march release%22&maxResults=10

Krk Rama Krishna February 12, 2019

But when i request like it is showing an error 

{"errorMessages":["Error in the JQL Query: The quoted string has not been completed. (line 1, character 31)"],"errors":{}}

 

api/rest/2/search?jql=project = PROJNAME AND fixVersion = "MARCH RELEASE" AND assignee (NAME)'

Alexey Matveev
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.
February 12, 2019

How do you execute this REST call? From which program?

Moreover with assignee it should be

assignee = name

Krk Rama Krishna February 12, 2019

with python can u please write a full url and show me because i tried with assignee = name 

Krk Rama Krishna February 12, 2019

import requests

 r = requests.get('https://****/rest/api/2/search?jql=project = PROJNAME AND assignee = NAME AND fixVersion = "MARCH"')

print(r.text)

this is the python code same error 

Alexey Matveev
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.
February 12, 2019

It looks correct to me. Try to remove the part with double quotes and see if it works.

Krk Rama Krishna February 12, 2019

getting this error {"errorMessages":["Error in JQL Query: Expecting either a value, list or function before the end of the query."],"errors":{}} 

when i remove double code

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events