Community
Participate
Working Groups
The Bugzilla Repository Settings Page allows you to specify a "Workflow Description File" under the additional settings section. This file is supposed to let you designate custom statuses as closed statuses (thus showing as complete in your Task List) according to: http://wiki.eclipse.org/Mylyn_Bugzilla_Connector#Custom_Transitions "ClosedCustomStatus is a list of custom statuses which leave the bug in a closed state. Defaults to an empty list if unspecified." However, the closed statuses specified by this file are never read.
Created attachment 178098 [details] Possible solution for statuses issue.
Created attachment 178099 [details] mylyn/context/zip
To solve this problem you can make the repository configuration return the closed statuses specified in the file, via the CustomTransitionManager, if it exists. This is the approach that the patch takes.
Also need to verify whether it is required to manually refresh the configuration after specifying a file. This should not be necessary.
(In reply to comment #4) > Also need to verify whether it is required to manually refresh the configuration > after specifying a file. This should not be necessary. Note: commented on parent task re this issue as it could effect all related issues. I was able to verify that it does require a manual refresh of the configuration before the RepositoryConfiguration is updated.
David, I think after apply patch of bug#324525 we can close this bug to. Can you please verify.
Created attachment 178224 [details] mylyn/context/zip
(In reply to comment #6) > David, > > I think after apply patch of bug#324525 we can close this bug to. > > Can you please verify. Frank, This definitely fixes the problem related to refreshing the repository after adding a new status file, great! However, the closedStatuses in the RepositoryConfiguration are still never used and thus this bug should remain open. To reproduce the problem I'm seeing. # Connect to a standard Bugzilla instance # Create a file named status.txt with the following contents: bq. CustomStatusNames=true DuplicateStatus=DUPLICATE StartStatus=CLOSED ClosedCustomStatus=ASSIGNED ClosedCustomStatus=NEW <transitions> name :ASSIGNED:, can_change_to :NEW,POST,CLOSED: name :NEW:, can_change_to :POST,ASSIGNED,CLOSED: # Open the Repository Settings of the Bugzilla and point it at the status file # Note that bugs with a status of NEW should now appear with a strikethrough, as they are specified as complete by the status file # Refresh a bug with a status of NEW, it still does not have a strikethrough This is because the closedStatus field in the CustomTransitionManager is never used by the RepositoryConfiguration. I think that the RC should just return the validTransitions' closed statuses if it exists.
Created attachment 184561 [details] commited patch
Created attachment 184562 [details] mylyn/context/zip
(In reply to comment #8) ... > This is because the closedStatus field in the CustomTransitionManager is never > used by the RepositoryConfiguration. I think that the RC should just return the > validTransitions' closed statuses if it exists. Now the validTransitions' closed statuses are used when not present we use the RepositoryConfiguration values.