Uploaded image for project: 'Maven Changes Plugin'
  1. Maven Changes Plugin
  2. MCHANGES-333

announcement-generate for JIRA doesn't query for relevant issues

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Auto Closed
    • 2.9
    • None
    • jira
    • None

    Description

      announcement-generate for JIRA submits a JQL query eg

      Address: https://palomamobile.atlassian.net/rest/api/2/search
      ...
      Payload: {"jql":"project = PCSV AND status in (5, 6) AND resolution in (1, 8)","maxResults":25,"fields":["*all"]}
      

      and then selects issues from the response which were fixed in the current version. If no issues are selected the goal fails, eg:

      Couldn't find the release '1.0.76' among the supplied releases: [Release[version='1.0.73.1', date='null', description='null', actionsSize=2], Release[version='1.0.73', date='null', description='null', actionsSize=3], Release[version='1.0.72', date='null', description='null', actionsSize=2], Release[version='1.0.75', date='null', description='null', actionsSize=5], Release[version='1.0.74', date='null', description='null', actionsSize=4], Release[version='1.0.74.1', date='null', description='null', actionsSize=1], Release[version='1.0.71.2', date='null', description='null', actionsSize=1], Release[version='1.0.71.1', date='null', description='null', actionsSize=1]]
      

      By contrast, jira-report uses a JQL query with a constraint on fixVersion; eg when onlyCurrentVersion=true for the same pom as above the query is:

      Address: https://palomamobile.atlassian.net/rest/api/2/search
      ...
      Payload: {"jql":"project = PCSV AND fixVersion = \"1.0.77\" AND status in (5, 6) AND resolution in (1, 8) ORDER BY priority DESC, created DESC","maxResults":100,"fields":["*all"]}
      

      It seems like announcement-generate should use the same JQL query that jira-report does in this case.

      Attachments

        1. MCHANGES-333.patch
          0.6 kB
          Richard Barnett

        Activity

          People

            Unassigned Unassigned
            richard.barnett Richard Barnett
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: