You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.