public function getEditMetadata($issue)
    {
        $path = "/issue/{$issue}/editmeta";

        try {
            $data = $this->client->callGet($path)->getData();

            if (!isset($data['fields'])) {
                throw new JiraException("Bad metadata");
            }

            return $data;
        } catch (Exception $e) {
            throw new JiraException("Failed to retrieve issue metadata", $e);
        }
    }