I am using the rest API of JIRA to retrieve issues while filtering on the project name and issue type.
When I try to use an API call like:
String url3 = "jiraURL/rest/api/2/search?jql=project=GB AND issuetype=Requirement&maxResults=1000";
It works!
But when I try:
String url3 = jiraURL/rest/api/2/search?jql=project=GB AND issuetype=Product Risk&maxResults=1000";
I got HttpClientErrorException: 400
.
Meaning my URL is wrong. I think the error lies in the fact that there is a space between the two words that are the issuetype.
I already tried putting + instead of spaces but that doesn't work. My first call works perfectly. But I don't know how to solve the second call.