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

Update create issue development documentation

    XMLWordPrintable

Details

    • We collect Jira feedback from various sources, and we evaluate what we've collected when planning our product roadmap. To understand how this piece of feedback will be reviewed, see our Implementation of New Features Policy.

    Description

      The following document is out of date:
      http://confluence.atlassian.com/display/JIRA/Creating+and+Editing+an+Issue

      I think the following does not work since 3.7:

      MutableIssue issueObject = (MutableIssue) JiraUtils.loadComponent(IssueImpl.class);
      

      And should be replaced with:

      MutableIssue issueObject = issueFactory.getIssue();
      

      We should also say that if you are creating an issue from a place where the issueFactory cannot be injected in the constructor (e.g. you are writing a servlet), you can get the issueFactory statically:

      IssueFactory issueFactory = ComponentManager.getInstance().getIssueFactory();
      

      Need to test to ensure the example works.

      When fixing the page we should provide both examples, pre-JIRA 3.7 and after 3.7 and clearly state which one should be used where.

      Attachments

        Activity

          People

            dylan@atlassian.com Dylan Etkin [Atlassian]
            anton@atlassian.com AntonA
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 1h
                1h
                Remaining:
                Remaining Estimate - 1h
                1h
                Logged:
                Time Spent - Not Specified
                Not Specified