jira-client
jira-client copied to clipboard
net.rcarz.jiraclient.JiraException: Failed to retrieve issue metadata
Hi @rcarz , getiing issue with createIsuue in JiraClient
BasicCredentials creds = new BasicCredentials("*****", "***"); JiraClient jira = new JiraClient("http://localhost:8080/login.jsp", creds); / Create a new issue. */ Issue newIssue = jira.createIssue("WEB", "Bug") .field(Field.SUMMARY, "This is test bug") .field(Field.DESCRIPTION, "Description of test bug.") .field(Field.REPORTER, "se.pradeepkumar") .field(Field.ASSIGNEE, "se.pradeepkumar") .execute(); System.out.println(newIssue);
/* Retrieve issue WEB-1 from JIRA. We'll get an exception if this fails. */
Issue issue = jira.getIssue("WEB-1");
/* Print the issue key. */
System.out.println(issue);
/* You can also do it like this: */
System.out.println(issue.getKey());

Hi @testingxpertshyd ,
Just use your Api token instead of password if you are using Jira Cloud:

I'm also facing the same issue.... I'm using Jira cloud with SSO
This statement in the class RestClient is causing a malformed URL adding a null ub.setPath(ub.getPath() + path);
your new URL will be this http://totallytot.atlassian.net/null/rest/api/... this for httpclient-4.5.13.jar