# Occur exception when querying GraphQL API issueSearch() with devInfoDetails field

**URL:** <https://community.developer.atlassian.com/t/occur-exception-when-querying-graphql-api-issuesearch-with-devinfodetails-field/86655>\
**Category:** Jira Cloud\
**Tags:** graphql\
**Created:** [November 27, 2024, 1:38am UTC](https://community.developer.atlassian.com/t/occur-exception-when-querying-graphql-api-issuesearch-with-devinfodetails-field/86655 "2024-11-27T01:38:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![MasaharuFujita](https://avatars.discourse-cdn.com/v4/letter/m/54ee81/32.png) [@MasaharuFujita](https://community.developer.atlassian.com/u/MasaharuFujita)\
**Post date:** [November 27, 2024, 1:38am UTC](https://community.developer.atlassian.com/t/occur-exception-when-querying-graphql-api-issuesearch-with-devinfodetails-field/86655/1 "2024-11-27T01:38:12Z")

</div>

Hi,

When using GraphQL API’s issueSearch() to retrieve development information devInfoDetails,  
NullPointerException is raised and an error occurs.  
The same error occurs even if the ticket has GitHub branch/commit information.

On the other hand, if I use issueByKey(), I can get the development information devInfoDetails normally.

Is there any way to retrieve the devInfoDetails information with issueSearch() or is there an alternative?

```auto
query GetJiraIssuesAndDevInfoByJQL($cloudId: ID!, $jql:String) {
  jira{
    issueSearch(cloudId:$cloudId, issueSearchInput: {jql:$jql})
     @optIn(to: "JiraSpreadsheetComponent-M1")
    {
      totalCount
      pageInfo{
        hasNextPage
        hasPreviousPage
        endCursor
      }
      edges{
        node{
          id
          issueId
          key
          webUrl
          summary
          devInfoDetails{
            branches{
              details{
                name
              }
            }
            commits{
              details{
                providerCommitId
                displayCommitId
                entityUrl
                name
                created
                author{
                  name
                }
                isMergeCommit
                scmRepository{
                  entityUrl
                  name
                }
              }
            }
          }
          fieldsById(ids:"customfield_10064"){
            edges{
              node{
                name
                description
                fieldId
                id
              }
            }
          }
          resolutionDateField{
            name
            id
            fieldId
            description
          }
        }
      }
    }
  }
}

```
