Issue Details (XML | Word | Printable)

Key: JRA-3992
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Keith Brophy
Reporter: Dylan van Iersel
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
JIRA

Releasenotes show all issues

Created: 01/Jul/04 07:03 AM   Updated: 30/Jul/06 07:35 PM
Component/s: None
Affects Version/s: 2.6 Pro
Fix Version/s: 3.0 Pro Preview

Time Tracking:
Original Estimate: 2 hours
Original Estimate - 2 hours
Remaining Estimate: 2 hours
Remaining Estimate - 2 hours
Time Spent: Not Specified
Remaining Estimate - 2 hours

File Attachments: 1. File ReleaseNoteManager$IssuesByType.class (3 kB)
2. File ReleaseNoteManager.class (6 kB)
3. File releasenotes-text.vm (2 kB)

Environment: standalone
Issue Links:
Reference
 

Participants: Dylan van Iersel, Jeff Turner [Atlassian], Keith Brophy, Martin Rothbaum, Owen Fellows and PieterB
Since last comment: 4 years, 11 weeks, 1 day ago
Resolution Date: 27/Jul/04 08:46 PM
Labels:


 Description  « Hide
When requesting Release Notes from JIRA, the generated overview contains all issues for the specified version regardless their status or resolution. Since the releasenotes don't contain any further information like status or resolution, it is not clear what has been fixed in a release.

Normally one would, ofcourse, move all open issues to another version, but in our case we do a lot of builds of our "platform" which is then given to the various other teams that depend on it. So before we do a formal release, a lot of builds have been taken place and we would like to include a list of things that have been changed and have that one grow up to the point of the first actual release.

So, I would like to be able to generate releasenotes for unreleased versions (typically a branch version like 1.8) and have either a list of things that have been closed or resolved, OR a list of issues including their status and resolution.



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Keith Brophy added a comment - 01/Jul/04 09:17 PM
Hi Dylan,

I have attached a number of files that should generate a release note including the status and resolution. Please replace these files with those in your current JIRA instance.

The velocity template code is a little cramped - but this is so as the final formatting is correct - but this can be edited as suitable.

Let me know if this solution is viable - otherwise - I can attach a class with a modified search that will return only closed/resolved issues for the selected version.

Cheers,
Keith


Keith Brophy added a comment - 01/Jul/04 09:18 PM
Similar changes as shown in the text template can be made to your other veolcity templates (such as the standard HTML tempalte shipped with JIRA).

Dylan van Iersel added a comment - 05/Jul/04 05:06 AM
Keith,
In our JIRA installation, I have replaced the original files with the ones you provided. However, when trying to generate the releasenotes, I only get an empty page.

I found the original files in ${JIRA}/atlassian-jira/WEB-INF/classes/... and have restarted JIRA afterwards.


Owen Fellows added a comment - 05/Jul/04 01:05 PM
Where did you place the attached files?
Did you restart after replacing the old files with the new files?

Dylan van Iersel added a comment - 06/Jul/04 03:11 AM
ReleaseManager.class was placed into ${JIRA_HOME}\atlassian-jira\WEB-INF\classes\com\atlassian\jira\project\util
releasenotes-text.vm was placed into ${JIRA_HOME}\atlassian-jira\WEB-INF\classes\templates\jira\project\releasenotes

And yes, I have restared the server after replacing the files.


Owen Fellows added a comment - 06/Jul/04 03:25 AM
Where there any errors in the logs when running the templates that returned empty pages?

PieterB added a comment - 12/Jul/04 05:23 AM
My collegue Dylan van Iersel is away for three weeks. I will replace him the coming weeks.

I've installed the files again today (same procedure as described by Dylan). There were no errors in the logs. When you create release notes for a unreleased version, Jira opens:

http://foo.bar/secure/ReleaseNote.jspa?version=10100&styleName=Text&projectId=10000&Create=Create

which is empty, and only contains the standard footer:

Powered by Atlassian JIRA™ (Professional Edition, Version: 2.6-#64)

  • Bug/feature request Contact Administrators

I've attached the logfiles. Note that some of the messages in these logs might be related to JRA-4019 and not to this issue.


PieterB added a comment - 14/Jul/04 10:27 AM
Hi Keith,

Can you tell me if it is possible to give us new files for testing. Will such functionality become a standard part of Jira in a future version?

Thanks in advance,

Pieter


Martin Rothbaum added a comment - 18/Jul/04 11:55 PM
I have tried the patch provided and get the same result - an empty page.

Keith Brophy added a comment - 26/Jul/04 01:24 AM
Apologies for the delay in responding - we very busy getting ready to release version 3.0 over the next couple of weeks.

I have attached two classes ReleaseNoteManager.class and ReleaseNoteManager$IssuesByType.class. I think the problem may have occurred due to the fact that I omitted the IssuesByType inner class previously. I have tested these classes and the updated template on JIRA 2.6 and the release notes correclty show the status and resolution.

JIRA will need to be restarted once these classes and templates have been replaced.

If further problems are encountered, please increase the logging level in the log4j.properties file by modifiying the following setting to DEBUG:

log4j.rootLogger=WARN, console

and attaching the output.

The issue status and resolution is retrieved through the ConstantsManager. In the next release, the ConstantsManager will be passed to the velocity template so as users can customize their templates and reference the ConstantsManager as shown in the attached tempalte.


PieterB added a comment - 27/Jul/04 05:57 AM
Keith,

Thanks a lot for adding the files. We have installed:

ReleaseManager.class and ReleaseNoteManager$IssuesByType.class are placed into ${JIRA_HOME}\atlassian-jira\WEB-INF\classes\com\atlassian\jira\project\util

releasenotes-text.vm was placed into ${JIRA_HOME}\atlassian-jira\WEB-INF\classes\templates\jira\project\releasenotes

and it does exactly what we want (for the text-template).

Thanks a lot!

Issue can be closed. Can you also remove our logfiles of your system?

Pieter


Jeff Turner [Atlassian] added a comment - 27/Jul/04 08:46 PM
Glad it's resolved. I have removed your logs.