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

net.rcarz.jiraclient.JiraException: Failed to retrieve issue metadata #253

Open
ghost opened this issue Jul 2, 2019 · 3 comments
Open

Comments

@ghost
Copy link

ghost commented Jul 2, 2019

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());

60387378-ab025a80-9abf-11e9-92d6-0e3bbd4fc34e

@totallytot
Copy link

totallytot commented Jul 4, 2019

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

@suryajit7
Copy link

I'm also facing the same issue.... I'm using Jira cloud with SSO

@carrigiljavia
Copy link

carrigiljavia commented Jul 24, 2022

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

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