XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.11
    • 2.12
    • announcement
    • None

    Description

      I tried to add field "dueTo" to my announcment file, but it is always empty.

      I found following source code in IssueAdapter.java:

          /**
           * Create an <code>Action</code> from an issue.
           * 
           * @param issue The issue to extract the information from
           * @return An <code>Action</code>
           */
          public Action createAction( Issue issue )
          {
              Action action = new Action();
      
              // @todo We need to add something like issue.getPresentationIdentifier() to be able to support other IMSes
              // beside JIRA
              action.setIssue( issue.getKey() );
      
              // Try to map the IMS-specific issue type to one that is used in a changes.xml file
              IssueType type;
              if ( getIssueTypeMap().containsKey( issue.getType() ) )
              {
                  type = getIssueTypeMap().get( issue.getType() );
                  action.setType( type.modelRepresentation() );
              }
              else
              {
                  action.setType( UNKNOWN_ISSUE_TYPE );
              }
      
              action.setDev( issue.getAssignee() );
      
              // Set dueTo to the empty String instead of null to make Velocity happy
              action.setDueTo( "" );
              // action.setDueTo( issue.getReporter() );
      
              action.setAction( issue.getSummary() );
              return action;
          }
      

      Fix should be:

          Action.setDueTo(isse.getReport == null ? "" : issue.getReporter());
      

      or something like this.

      Attachments

        Activity

          People

            michael-o Michael Osipov
            dur dur
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: