https://www.redmine.org/https://www.redmine.org/favicon.ico?16793021292010-10-12T12:08:35ZRedmineRedmine - Feature #6641: creating project-specific activitieshttps://www.redmine.org/issues/6641?journal_id=212842010-10-12T12:08:35ZFelix Schäfer
<ul></ul><p>I think it's a problem of permissions, as the activities are currently only manageable for the administrator.</p> Redmine - Feature #6641: creating project-specific activitieshttps://www.redmine.org/issues/6641?journal_id=212862010-10-12T13:12:37ZAlbert Rosenfield
<ul></ul><p>Hi</p>
<p>Thanks for the suggestion!</p>
<p>Just logged in and checked again, both on a production setup (0.9.something) and on a 1.0.3 I am configuring to take over.</p>
<p>Nope, on both systems it is not possible to add or edit per-project activities.</p>
<p>(I logged in as "admin", I couldn't find a way to enable more privileges for this account.)</p>
<p>Are the buttons supposed to be there already? Maybe this is a bug, then?</p> Redmine - Feature #6641: creating project-specific activitieshttps://www.redmine.org/issues/6641?journal_id=212892010-10-12T13:29:55ZAlbert Rosenfield
<ul></ul><p>I've looked in redmine/app/views/projects/settings/_activities.rhtml and currently there is only a Reset and Save button, nothing for add/edit/delete.</p> Redmine - Feature #6641: creating project-specific activitieshttps://www.redmine.org/issues/6641?journal_id=212992010-10-12T20:02:17ZFelix Schäfer
<ul></ul><p>An admin can only manage (add, edit, remove) them at global, not at project level. The only project-level permission for them is selecting which ones are available for that project.</p>
<p>What I meant is that there is currently no permission "manage activities" (as in "add, edit, remove"), and giving those at project level would mean that they wouldn't be shareable without either making them all global or implementing a "complex" system as for the versions. This is just not there yet for the activities.</p> Redmine - Feature #6641: creating project-specific activitieshttps://www.redmine.org/issues/6641?journal_id=213272010-10-13T09:11:38ZAlbert Rosenfield
<ul></ul><blockquote>
<p>What I meant is that there is currently no permission "manage activities" <br />(as in "add, edit, remove"), and giving those at project level would mean<br />that they wouldn't be shareable</p>
</blockquote>
<p>Exactly what I'm after.</p>
<blockquote>
<p>This is just not there yet for the activities.</p>
</blockquote>
<p>Okay.</p>
<p>How do I best make this happen?</p>
<p>I am thinking:
* Create a redmine plugin
* Copy app/views/projects/settings/_activities.rhtml into the plugin
* Edit this and create add/edit buttons</p>
<p>Then,
* Test that everything works
* do a diff -u and submit a patch to redmine-patches (?)</p>
<p>As far as I can tell, the database support is already in place for this feature in the base install.</p> Redmine - Feature #6641: creating project-specific activitieshttps://www.redmine.org/issues/6641?journal_id=213392010-10-13T10:50:37ZFelix Schäfer
<ul></ul><p>A diff: yes, but if you want to play with core, submit a diff against core directly, i.e. work on a versioned installation. You could also make it as a plugin, but then just publish the plugin and link it from here.</p> Redmine - Feature #6641: creating project-specific activitieshttps://www.redmine.org/issues/6641?journal_id=215472010-10-19T15:52:43ZAlbert Rosenfield
<ul></ul><p>Created a plugin ;-).</p>
It requires two patches to core:
<ul>
<li>Disallow saving an enumeration with <em>is_default</em> = 1 and <em>project_id</em> <> nil</li>
<li>Avoid filtering out <strong>all</strong> system activities when a non-inherited project-specific activity exists (in <em>system_activities_and_project_overrides</em>).</li>
</ul>
<p>Can we apply them to core (in <em>app/models/project.rb</em>)?</p>
<p>Even though specifically crafted for this plugin, they do not break anything.</p>
<p>Or is there a way that I can override models/controllers/public in a plugin? I've tried but haven't figured it out.</p> Redmine - Feature #6641: creating project-specific activitieshttps://www.redmine.org/issues/6641?journal_id=217882010-10-25T15:06:16ZAlbert Rosenfield
<ul><li><strong>File</strong> <a href="/attachments/4723">do_not_allow_setting_is_default_if_project_id_is_set.patch</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/4723/do_not_allow_setting_is_default_if_project_id_is_set.patch">do_not_allow_setting_is_default_if_project_id_is_set.patch</a> added</li><li><strong>File</strong> <a href="/attachments/4724">do_not_filter_out_all_system_activities_when_a_noninherited_project_specific_activity_exists.patch</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/4724/do_not_filter_out_all_system_activities_when_a_noninherited_project_specific_activity_exists.patch">do_not_filter_out_all_system_activities_when_a_noninherited_project_specific_activity_exists.patch</a> added</li></ul> Redmine - Feature #6641: creating project-specific activitieshttps://www.redmine.org/issues/6641?journal_id=256672011-02-26T18:16:01ZEtienne Massip
<ul><li><strong>Category</strong> set to <i>Time tracking</i></li></ul> Redmine - Feature #6641: creating project-specific activitieshttps://www.redmine.org/issues/6641?journal_id=973022020-04-16T16:08:39ZGreg T
<ul></ul><p>This is related to <a class="issue tracker-2 status-5 priority-5 priority-high2 closed" title="Feature: Custom fields and overrides on Enumerations (Closed)" href="https://www.redmine.org/issues/4077">#4077</a>.<br />"System Activity" (enumeration_system_activity in locales) is baffling when there's no other kind.</p>