Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-36841

Issues created with the Issue Service cannot be opened

    XMLWordPrintable

Details

    • Support Request
    • Resolution: Resolved Locally
    • Low
    • None
    • 6.1.6
    • Java API

    Description

      So, in my plugin, I use the IssueService.create() method to add issues to a newly created project. This is the method I used to create them :

      IssueInputParameters issueToCreate = ComponentAccessor.getIssueService().newIssueInputParameters();
      issueToCreate.set...; //All the sets
      IssueService.CreateValidationResult validationResult = ComponentAccessor.getIssueService().validateCreate(user, issueToCreate);
      if (validationResult.isValid())

      { IssueService.IssueResult createdIssue = ComponentAccessor.getIssueService().create(user, validationResult); }

      When I do so, all the issues seems to be added correctly (I see all of them in the project page), but when I click on one, I get this error in the console :

      SEVERE: Servlet.service() for servlet action threw exception
      java.lang.NullPointerException
      at com.atlassian.jira.plugin.issuenav.action.IssueBean$IssueProjectBean.<init>(IssueBean.java:146)
      at com.atlassian.jira.plugin.issuenav.action.IssueBean.<init>(IssueBean.java:60)
      at com.atlassian.jira.plugin.issuenav.IssueNavAction.doIssue(IssueNavAction.java:629)
      at com.atlassian.jira.plugin.issuenav.IssueNavAction.doDefault(IssueNavAction.java:261)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:606)
      at webwork.util.InjectionUtils$DefaultInjectionImpl.invoke(InjectionUtils.java:70)
      [...]

      This is quit annoying since everywhere I look this is the method to use to create issues in a JIRA plugin (without using the REST API). Is this a known bug?

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              636b7040e29e Frederick Plante
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: