We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
For my code I get an error, I know I have entered all the requried fields for ticket, I know my data is right (jira link, username, password, etc)
What does this error say?
Thanks for help in advance
My code:
public static void reportIssue() { BasicCredentials creds = new BasicCredentials("myName", "myPassword"); jira = new JiraClient("https://jira.myJira.hr/",creds); try{ Issue newIssue = jira.createIssue("BUMBAPTRAP","Bug") .field(Field.SUMMARY, "Test auto reporting") .field(Field.COMPONENTS,new ArrayList(){{add("Android");}}) .field(Field.VERSIONS, new ArrayList(){{add("4.6.28");}}) .field(Field.DESCRIPTION, "SOME DESCRIPTION") .field(Field.REPORTER, "MY NAME") .field(Field.ASSIGNEE, "MY NAME") .field(Field.LABELS, new ArrayList(){{add("TEST LABEL");}}) .field("customfield_11500",new ArrayList() {{add("hihi");}}) .field("customfield_11503", new ArrayList() {{add("hehe");}}) .field("customfield_11520","someuserId") .field("customfield_11521","11:52") .field("customfield_11522","Samsung") .field("customfield_11523","Android") .execute(); System.out.println(newIssue); System.out.println("SUCCESSFUL JIRA REPORT TICKET"); } catch (JiraException e){ System.err.println(e.getMessage()); if(e.getCause()!= null){ System.err.println(e.getCause().getMessage()); } }
Error I get:
Failed to create issue 400 400: Bad Request [net.rcarz.jiraclient.Issue$FluentCreate.executeCreate(Issue.java:116), net.rcarz.jiraclient.Issue$FluentCreate.execute(Issue.java:59), testSetup.reportSetup.JIRAreporter.reportIssue(JIRAreporter.java:32), testSetup.reportSetup.NGTestListener.onTestFailure(NGTestListener.java:32), org.testng.internal.TestListenerHelper.runTestListeners(TestListenerHelper.java:66), org.testng.internal.TestInvoker.runTestResultListener(TestInvoker.java:210), org.testng.internal.TestInvoker.invokeMethod(TestInvoker.java:638), org.testng.internal.TestInvoker.invokeTestMethod(TestInvoker.java:172), org.testng.internal.MethodRunner.runInSequence(MethodRunner.java:46), org.testng.internal.TestInvoker$MethodInvocationAgent.invoke(TestInvoker.java:804), org.testng.internal.TestInvoker.invokeTestMethods(TestInvoker.java:145), org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:146), org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:128), java.base/java.util.ArrayList.forEach(ArrayList.java:1507), org.testng.TestRunner.privateRun(TestRunner.java:770), org.testng.TestRunner.run(TestRunner.java:591), org.testng.SuiteRunner.runTest(SuiteRunner.java:402), org.testng.SuiteRunner.runSequentially(SuiteRunner.java:396), org.testng.SuiteRunner.privateRun(SuiteRunner.java:355), org.testng.SuiteRunner.run(SuiteRunner.java:304), org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:53), org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:96), org.testng.TestNG.runSuitesSequentially(TestNG.java:1180), org.testng.TestNG.runSuitesLocally(TestNG.java:1102), org.testng.TestNG.runSuites(TestNG.java:1032), org.testng.TestNG.run(TestNG.java:1000), com.intellij.rt.testng.IDEARemoteTestNG.run(IDEARemoteTestNG.java:66), com.intellij.rt.testng.RemoteTestNGStarter.main(RemoteTestNGStarter.java:110)]
The text was updated successfully, but these errors were encountered:
No branches or pull requests
For my code I get an error, I know I have entered all the requried fields for ticket, I know my data is right (jira link, username, password, etc)
What does this error say?
Thanks for help in advance
My code:
Error I get:
The text was updated successfully, but these errors were encountered: