[Solved] Forge RestAPI Search with issueType doesn't work


I create a API call which should fest all issues for my project. But I get a problem with fetching the type of the issue. I try “type” and “issueType” by the fields property but always I don’t get the type.

var bodyData = {
      jql: jql,
      maxResults: 100,
      startAt: 0,
      fields: ["type", 'summary', 'description', 'priority']
    const bodyString = JSON.stringify(bodyData)
    console.log('bodyString', bodyString)

    const response = await api.asApp().requestJira(route`/rest/api/3/search`, {
      method: 'POST',
      headers: {
        Accept: 'application/json',
        'Content-Type': 'application/json'
      body: bodyString

Thank you

I found a solution. If I use “issuetype” it works.

But be careful in the documentation is it written “issueType”


1 Like

In the REST API documentation, it sometimes isn’t clear when a word represents a placeholder where you have to substitute an appropriate value, and where the word itself has to used, verbatim.

Many examples show ‘issueType’ used in a JQL statement, but in fact the word ‘issuetype’ works just as well, as that’s not case sensitive. However, when declaring values for parameters to submit for other parts of the request, case sensitivity does matter, as you’ve discovered.