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
Hello,
I'm having the same error with PUT /rest/api/2/user. I'm trying to deactivate users via API (Jira server 8.13, postgres).
This important guys, any answers?
Same question. Why don't anyone anwser it?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
were you able to resolve the issue?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.