Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

V3 API and issues fields #458

Closed
b2p-fred opened this issue Jul 19, 2022 · 6 comments
Closed

V3 API and issues fields #458

b2p-fred opened this issue Jul 19, 2022 · 6 comments

Comments

@b2p-fred
Copy link
Contributor

With the V3 API set as True, an exception is raised:

JSON property "description" in class "JiraRestApi\Issue\IssueFieldV3" is an object and cannot be converted to a string

for a simple jql request on project issues:

        try {
            // Search new issues
            $jql = 'project = EPR and status in (New)';
            $issueService = new IssueService();
            $searchResult = $issueService->search($jql);
            foreach ($searchResult->getIssues() as $issue) {
//                var_dump($issue);
            }
        } catch (JiraException $e) {
            echo 'Error JiraException Occured! '.$e->getMessage();
        } catch (\JsonMapper_Exception $e) {
            echo 'Error JsonMapper_Exception Occured! '.$e->getMessage();
        }
@lesstif
Copy link
Owner

lesstif commented Jul 24, 2022

Hi @b2p-fred Thank you for your reports.

I changed the code on this commit.
Could you check changes work well, please?

@b2p-fred
Copy link
Contributor Author

I tried with your commit but the problem is still present. Sorry but I do not have many time at the moment to investigate.

@lesstif
Copy link
Owner

lesstif commented Jul 26, 2022

I'm so sorry. I totally misunderstood your report, and it is a bug.
Unfortunately, I do have not enough time at this time, I will fix it later.

@b2p-fred
Copy link
Contributor Author

No matter. I do not have any emergency with this feature

@lesstif
Copy link
Owner

lesstif commented Aug 13, 2022

Hi @b2p-fred.
I was forked V3 specific repository. you can find here.

Thank you!

@GM-Alex
Copy link

GM-Alex commented Feb 8, 2023

@lesstif But why?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants