Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-58086

Unable to create JIRA issues from Jenkins using "JIRA Plugin"

    Details

    • Similar Issues:

      Description

      I have installed Jira Plugin and verified the connection to Jira. It is a success.

      But when I tried to create an issue from Jira it is failing with below exception. Can someone help, please?!

      I am using Jira Plugin version 3.0.7

      2019-06-18 21:20:19.145+0000 [id=124] INFO hudson.model.Run#execute: CreateJiraTicket #6 main build action completed: FAILURE
      2019-06-18 21:20:19.217+0000 [id=124] WARNING h.plugins.jira.JiraRestService#createIssue: JIRA REST createIssue error: RestClientException\{statusCode=Optional.of(400), errorCollections=[ErrorCollection{status=400, errors={project=project is required}, errorMessages=[]}]}
      RestClientException\{statusCode=Optional.of(400), errorCollections=[ErrorCollection{status=400, errors={project=project is required}, errorMessages=[]}]}
       at com.atlassian.jira.rest.client.internal.async.AbstractAsynchronousRestClient$2.apply(AbstractAsynchronousRestClient.java:176)
       at com.atlassian.jira.rest.client.internal.async.AbstractAsynchronousRestClient$2.apply(AbstractAsynchronousRestClient.java:170)
       at com.atlassian.httpclient.api.ResponsePromiseMapFunction.apply(ResponsePromiseMapFunction.java:67)
       at com.atlassian.httpclient.api.ResponsePromiseMapFunction.apply(ResponsePromiseMapFunction.java:11)
       at com.atlassian.util.concurrent.Promises$Of$3.apply(Promises.java:295)
       at com.atlassian.util.concurrent.Promises$2.onSuccess(Promises.java:185)
       at com.google.common.util.concurrent.Futures$6.run(Futures.java:975)
       at com.google.common.util.concurrent.MoreExecutors$SameThreadExecutorService.execute(MoreExecutors.java:253)
       at com.google.common.util.concurrent.ExecutionList$RunnableExecutorPair.execute(ExecutionList.java:149)
       at com.google.common.util.concurrent.ExecutionList.execute(ExecutionList.java:134)
       at com.google.common.util.concurrent.AbstractFuture.set(AbstractFuture.java:170)
       at com.google.common.util.concurrent.SettableFuture.set(SettableFuture.java:53)
       at com.atlassian.util.concurrent.Promises$Of$3.apply(Promises.java:295)
       at com.atlassian.util.concurrent.Promises$2.onSuccess(Promises.java:185)
       at com.google.common.util.concurrent.Futures$6.run(Futures.java:975)
       at com.google.common.util.concurrent.MoreExecutors$SameThreadExecutorService.execute(MoreExecutors.java:253)
       at com.google.common.util.concurrent.ExecutionList$RunnableExecutorPair.execute(ExecutionList.java:149)
       at com.google.common.util.concurrent.ExecutionList.execute(ExecutionList.java:134)
       at com.google.common.util.concurrent.AbstractFuture.set(AbstractFuture.java:170)
       at com.google.common.util.concurrent.SettableFuture.set(SettableFuture.java:53)
       at com.atlassian.httpclient.apache.httpcomponents.SettableFuturePromiseHttpPromiseAsyncClient$1.lambda$doCompleted$0(SettableFuturePromiseHttpPromiseAsyncClient.java:41)
       at com.atlassian.httpclient.apache.httpcomponents.SettableFuturePromiseHttpPromiseAsyncClient$ThreadLocalDelegateRunnable.lambda$run$0(SettableFuturePromiseHttpPromiseAsyncClient.java:150)
       at com.atlassian.httpclient.apache.httpcomponents.SettableFuturePromiseHttpPromiseAsyncClient.runInContext(SettableFuturePromiseHttpPromiseAsyncClient.java:69)
       at com.atlassian.httpclient.apache.httpcomponents.SettableFuturePromiseHttpPromiseAsyncClient$ThreadLocalDelegateRunnable.run(SettableFuturePromiseHttpPromiseAsyncClient.java:150)
       at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
       at java.lang.Thread.run(Thread.java:748)
      Caused: java.util.concurrent.ExecutionException
       at com.google.common.util.concurrent.AbstractFuture$Sync.getValue(AbstractFuture.java:289)
       at com.google.common.util.concurrent.AbstractFuture$Sync.get(AbstractFuture.java:262)
       at com.google.common.util.concurrent.AbstractFuture.get(AbstractFuture.java:91)
       at com.google.common.util.concurrent.ForwardingFuture.get(ForwardingFuture.java:69)
       at com.atlassian.jira.rest.client.internal.async.DelegatingPromise.get(DelegatingPromise.java:113)
       at hudson.plugins.jira.JiraRestService.createIssue(JiraRestService.java:287)
       at hudson.plugins.jira.JiraSession.createIssue(JiraSession.java:412)
       at hudson.plugins.jira.JiraCreateIssueNotifier.createJiraIssue(JiraCreateIssueNotifier.java:202)
       at hudson.plugins.jira.JiraCreateIssueNotifier.currentBuildResultFailure(JiraCreateIssueNotifier.java:357)
       at hudson.plugins.jira.JiraCreateIssueNotifier.perform(JiraCreateIssueNotifier.java:157)
       at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
       at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:741)
       at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:690)
       at hudson.model.Build$BuildExecution.post2(Build.java:186)
       at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:635)
       at hudson.model.Run.execute(Run.java:1843)
       at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
       at hudson.model.ResourceController.execute(ResourceController.java:97)
       at hudson.model.Executor.run(Executor.java:429)
      

        Attachments

          Activity

          Hide
          sanooprajps sanoop raj p s added a comment -

          Required attributes were missing (Project id)

          Show
          sanooprajps sanoop raj p s added a comment - Required attributes were missing (Project id)
          Hide
          sanooprajps sanoop raj p s added a comment -

          Thank you very much. It is working now!

          Show
          sanooprajps sanoop raj p s added a comment - Thank you very much. It is working now!
          Hide
          vrnsky Egor Voronyansky added a comment -

          Also at the Docs wrotten that you need a service account. I try to reproduce your issue, but get stuck with service account

          Show
          vrnsky Egor Voronyansky added a comment - Also at the Docs wrotten that you need a service account. I try to reproduce your issue, but get stuck with service account
          Hide
          vrnsky Egor Voronyansky added a comment -

          sanoop raj p s yes,

          {statusCode=Optional.of(400), errorCollections=[ErrorCollection{status=400, errors={project=project is required
          
          Show
          vrnsky Egor Voronyansky added a comment - sanoop raj p s yes, {statusCode=Optional.of(400), errorCollections=[ErrorCollection{status=400, errors={project=project is required
          Hide
          sanooprajps sanoop raj p s added a comment - - edited

          Is it because it is unable to find the project key?!

          Show
          sanooprajps sanoop raj p s added a comment - - edited Is it because it is unable to find the project key?!

            People

            • Assignee:
              Unassigned
              Reporter:
              sanooprajps sanoop raj p s
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: