You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Rubén Sans Mudoy (JIRA)" <ji...@apache.org> on 2016/04/07 12:02:25 UTC

[jira] [Commented] (MCHANGES-369) announcement-generate not include fixVersion filter in JQL

    [ https://issues.apache.org/jira/browse/MCHANGES-369?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15230026#comment-15230026 ] 

Rubén Sans Mudoy commented on MCHANGES-369:
-------------------------------------------

I fixed it adding some lines to AnnouncementMojo.java

at line 218 
  /**
     * If you only want to show issues for the current version in the report. The current version being used is
     * <code>${project.version}</code> minus any "-SNAPSHOT" suffix.
     */
    @Parameter( defaultValue = "false" )
    private boolean onlyCurrentVersion;

at line 785
jiraDownloader.setOnlyCurrentVersion( onlyCurrentVersion );
after line jiraDownloader.setReceiveTimout( jiraReceiveTimout );

Could you update the code?

> announcement-generate not include fixVersion filter in JQL
> ----------------------------------------------------------
>
>                 Key: MCHANGES-369
>                 URL: https://issues.apache.org/jira/browse/MCHANGES-369
>             Project: Maven Changes Plugin
>          Issue Type: Bug
>          Components: announcement
>    Affects Versions: 2.11
>            Reporter: Rubén Sans Mudoy
>            Priority: Critical
>
> I'm trying this plugin and when I use mvn changes:jira-report generates that JQL:
> Payload: {"jql":"project = API AND fixVersion = m3 AND status in (6, 5) AND resolution in (1, 7) ORDER BY priority DESC, created DESC","maxResults":500,"fields":["*all"]}
> but when I use mvn changes:announcement-generate generates a JQL without the fixVersion filter.
> Payload: {"jql":"project = API AND status in (6, 5) AND resolution in (1, 7)","maxResults":500,"fields":["*all"]}
> In both cases the plugin configuration is the same. I need to generate release notes in plain text.
> This is the plugin configuration:
> <plugin>
>         <groupId>org.apache.maven.plugins</groupId>
>         <artifactId>maven-changes-plugin</artifactId>
>         <version>2.11</version>
>         <executions>
>           <execution>
>             <id>include-announcement-file</id>
>             <phase>generate-resources</phase>
>             <goals>
>               <goal>announcement-generate</goal>
>             </goals>
>             <configuration>
>               <announcementFile>CHANGES.txt</announcementFile>
>               <announcementDirectory>${project.build.outputDirectory}/META-INF</announcementDirectory>
>             </configuration>
>           </execution>
>         </executions>
>         <configuration>
>           <announcementFile>CHANGES.txt</announcementFile>
>           <announcementDirectory>${project.build.outputDirectory}/META-INF</announcementDirectory>
>           <developmentTeam>The Team</developmentTeam>
>           <maxEntries>500</maxEntries>
>           <issueManagementSystems>
>             <issueManagementSystem>JIRA</issueManagementSystem>
>           </issueManagementSystems>
>           <useJql>true</useJql>
>           <onlyCurrentVersion>true</onlyCurrentVersion>
>           <resolutionIds>Fixed,Done</resolutionIds>
>           <statusIds>Closed,Resolved</statusIds>
>           <columnNames>Type,Key,Summary,Priority,Status,Resolution,Fix Version,Assignee</columnNames>
>           <webUser>*****</webUser>
>           <webPassword>*****</webPassword>
>         </configuration>
>       </plugin>



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)