It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

"No content to map to Object due to end of input" error when updating issue Edited

Hello,

I'm trying to update an issue summary using Jira REST Java Client API with updateIssue method, and this is what I get in response:

{"errorMessages": ["No content to map to Object due to end of input"]}

Error: 

com.atlassian.jira.rest.client.api.RestClientException: [ErrorCollection{status=400, errors={}, errorMessages=[No content to map to Object due to end of input]}]

 

This is my code:

IssueRestClient issueClient = jiraClient.getRestClient().getIssueClient();

IssueInputBuilder issueInputBuilder = new IssueInputBuilder();
issueInputBuilder.setSummary("Test summary");

IssueInput issueInput = issueInputBuilder.build();

issueClient.updateIssue("MY-ISSUE-KEY", issueInput).claim();

 

Details:

1. I'm creating an issue using the same Jira Client API with no problems with createIssue method:

IssueRestClient issueClient = jiraClient.getRestClient().getIssueClient();

IssueInputBuilder issueInputBuilder = new IssueInputBuilder("MY-PROJECT-KEY", "MY-ISSUETYPE-ID");
issueInputBuilder.setSummary("Test summary");

IssueInput issueInput = issueInputBuilder.build();

BasicIssue basicIssue = issueClient.createIssue(issueInput).claim();

2. Calling a PUT method with Postman on my-company.atlassian.net/rest/api/latest/issue/MY-ISSUE-KEY with data {"fields" : {"summary": "Test summary"}} goes without any problems

3. My atlassian jira dependencies:

<dependency>
<groupId>com.atlassian.jira</groupId>
<artifactId>jira-rest-java-client-core</artifactId>
<version>5.0.4</version>
</dependency>

<dependency>
<groupId>com.atlassian.fugue</groupId>
<artifactId>fugue</artifactId>
<version>2.7.0</version>
</dependency>

 

I hope someone can help. Thanks!

 

Kind regards,

Luka

1 answer

were you able to resolve the issue?

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted in Jira

Demo Den Ep. 7: New Jira Cloud Reports

Learn how to use two new reports for next-gen projects in Jira Cloud:  Cumulative flow diagram and Sprint burndown chart. Ivan Teong, Product Manager, Jira Software, demos the Cumulative ...

303 views 1 3
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you