lesstif / php-jira-rest-client

PHP classes interact Jira with the REST API.
Other
510 stars 263 forks source link

Typed property JiraRestApi\Issue\Reporter::$emailAddress must not be accessed before initialization #522

Closed olia-bn closed 1 year ago

olia-bn commented 1 year ago

This can happen if emailAddress is missing from JIRA API response.

As per JIRA docs:

If using the get issue REST API endpoint with Jira you find that the reporter account is not returning an email address, it is likely the user has configured their profile settings to hide their email address.

https://confluence.atlassian.com/jirakb/how-to-display-the-email-address-of-the-reporter-on-a-jira-issue-1188416840.html