Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Trac: Users

custom group for ticket permission

 

 

Trac users RSS feed   Index | Next | Previous | View Threaded


jeanmarie78 at gmx

Oct 7, 2008, 5:28 AM

Post #1 of 15 (174 views)
Permalink
custom group for ticket permission

Hi trac users,

is it possible to set a user defined group as permision for a ticket
status instead of using the pre-defined permission TICKET_MODIFY. I
want only certain user to perferm certain ticket actions.

I've created a group 'grp_developer' and assigned the developer user
to this group. After this i set the permission TICKET_MODIFY to
'grp_developer'.

And no i want to use the group as a ticket permission.

<blah>.permissions = grp_developer

Thanks for any hints and best regards
Jean Marie

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac Users" group.
To post to this group, send email to trac-users[at]googlegroups.com
To unsubscribe from this group, send email to trac-users+unsubscribe[at]googlegroups.com
For more options, visit this group at http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---


basv at sara

Oct 7, 2008, 6:41 AM

Post #2 of 15 (167 views)
Permalink
Re: custom group for ticket permission [In reply to]

Jean Marie wrote:
> Hi trac users,
>
> is it possible to set a user defined group as permision for a ticket
> status instead of using the pre-defined permission TICKET_MODIFY. I
> want only certain user to perferm certain ticket actions.
>
> I've created a group 'grp_developer' and assigned the developer user
> to this group. After this i set the permission TICKET_MODIFY to
> 'grp_developer'.
>
> And no i want to use the group as a ticket permission.
>
> <blah>.permissions = grp_developer
>
> Thanks for any hints and best regards
> Jean Marie
>

Jean Marie

There is a plugin on trac-hacks called unixgroups. So if you installed
trac on a unix/linux box you can use it.

I have made a patch for it so it can handle sites that have a centralized
user administration which have many groups. If you want it i can email it
to you.


Regards

--
********************************************************************
* Bas van der Vlies e-mail: basv[at]sara.nl *
* SARA - Academic Computing Services Amsterdam, The Netherlands *
********************************************************************

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac Users" group.
To post to this group, send email to trac-users[at]googlegroups.com
To unsubscribe from this group, send email to trac-users+unsubscribe[at]googlegroups.com
For more options, visit this group at http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---


r.sokoll at intershop

Oct 7, 2008, 6:48 AM

Post #3 of 15 (167 views)
Permalink
Re: custom group for ticket permission [In reply to]

On Tue, Oct 07, 2008 at 05:28:46AM -0700, Jean Marie wrote:

> is it possible to set a user defined group as permision for a ticket
> status instead of using the pre-defined permission TICKET_MODIFY. I
> want only certain user to perferm certain ticket actions.

Maybe http://trac-hacks.org/wiki/BlackMagicTicketTweaksPlugin is what
you are looking for?
I've never tried it.

Rainer

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac Users" group.
To post to this group, send email to trac-users[at]googlegroups.com
To unsubscribe from this group, send email to trac-users+unsubscribe[at]googlegroups.com
For more options, visit this group at http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---


jeanmarie78 at gmx

Oct 8, 2008, 1:59 AM

Post #4 of 15 (155 views)
Permalink
Re: custom group for ticket permission [In reply to]

Hi,

On 7 Okt., 15:48, Rainer Sokoll <r.sok...@intershop.de> wrote:
> Maybehttp://trac-hacks.org/wiki/BlackMagicTicketTweaksPluginis what
> you are looking for?

i already use BlackMagicTicketTweaksPluginis for customizing the
appearance of certain ticket fields. It also provides to permit a
field from being changed by non-priviliged users. But that's not what
i want.

I want to disallow a group of user to select a certain action for a
ticket, e.g. a developer is not allowed to close a ticket.

Anyway, thanks for your answer.

Best regards
Jean Marie

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac Users" group.
To post to this group, send email to trac-users[at]googlegroups.com
To unsubscribe from this group, send email to trac-users+unsubscribe[at]googlegroups.com
For more options, visit this group at http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---


jeanmarie78 at gmx

Oct 8, 2008, 1:59 AM

Post #5 of 15 (143 views)
Permalink
Re: custom group for ticket permission [In reply to]

Hi,

On 7 Okt., 15:48, Rainer Sokoll <r.sok...@intershop.de> wrote:
> Maybehttp://trac-hacks.org/wiki/BlackMagicTicketTweaksPluginis what
> you are looking for?

i already use BlackMagicTicketTweaksPluginis for customizing the
appearance of certain ticket fields. It also provides to permit a
field from being changed by non-priviliged users. But that's not what
i want.

I want to disallow a group of user to select a certain action for a
ticket, e.g. a developer is not allowed to close a ticket.

Anyway, thanks for your answer.

Best regards
Jean Marie

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac Users" group.
To post to this group, send email to trac-users[at]googlegroups.com
To unsubscribe from this group, send email to trac-users+unsubscribe[at]googlegroups.com
For more options, visit this group at http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---


r.sokoll at intershop

Oct 8, 2008, 2:12 AM

Post #6 of 15 (155 views)
Permalink
Re: custom group for ticket permission [In reply to]

On Wed, Oct 08, 2008 at 01:59:48AM -0700, Jean Marie wrote:

> I want to disallow a group of user to select a certain action for a
> ticket, e.g. a developer is not allowed to close a ticket.

I have a similar issue. A developer must not close a ticket, instead,
once he marked a ticket "resolved", the ticket must go over to the QA
people. They will perform their tests and finally, either close the
ticket or re-assign it to the developer.
This is still not resolved for me (has not prio number 1), but I think
it is doable by changing the default workflow.

Rainer

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac Users" group.
To post to this group, send email to trac-users[at]googlegroups.com
To unsubscribe from this group, send email to trac-users+unsubscribe[at]googlegroups.com
For more options, visit this group at http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---


redetin at gmail

Oct 8, 2008, 2:24 AM

Post #7 of 15 (154 views)
Permalink
Re: custom group for ticket permission [In reply to]

Rainer Sokoll kirjoitti:
> On Wed, Oct 08, 2008 at 01:59:48AM -0700, Jean Marie wrote:
>
>> I want to disallow a group of user to select a certain action for a
>> ticket, e.g. a developer is not allowed to close a ticket.
>
> I have a similar issue. A developer must not close a ticket, instead,
> once he marked a ticket "resolved", the ticket must go over to the QA
> people. They will perform their tests and finally, either close the
> ticket or re-assign it to the developer.
> This is still not resolved for me (has not prio number 1), but I think
> it is doable by changing the default workflow.

Correct.

First you need to create new permission, e.g. TICKET_CLOSE.

Then you need to create group in trac what has that permission (or
assign permission to certain users).

Finally use permission property in new trac workflow to enable close
action only for TICKET_CLOSE permission.

like putting (replacing existing) following piece to workflow-section:

resolve = new,assigned,reopened -> closed
resolve.operations = set_resolution
resolve.permissions = TICKET_CLOSE

if you want to create "group" you do it this way in trac-admin (or by
using webadmin):

permission add my_group TICKET_CLOSE
permission add dev1 my_group
permission add dev2 my_group


very simple.

--
Jani Tiainen

"Tein sein mihin näillä lahjoilla pystyin.
Tein sen, en yhtään enempää." - Martti Servo & Napander


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac Users" group.
To post to this group, send email to trac-users[at]googlegroups.com
To unsubscribe from this group, send email to trac-users+unsubscribe[at]googlegroups.com
For more options, visit this group at http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---


stephen.moretti at gmail

Oct 8, 2008, 2:28 AM

Post #8 of 15 (154 views)
Permalink
Re: custom group for ticket permission [In reply to]

2008/10/8 Jani Tiainen <redetin[at]gmail.com>

>
> Rainer Sokoll kirjoitti:
> > On Wed, Oct 08, 2008 at 01:59:48AM -0700, Jean Marie wrote:
> >
> >> I want to disallow a group of user to select a certain action for a
> >> ticket, e.g. a developer is not allowed to close a ticket.
> >
> > I have a similar issue. A developer must not close a ticket, instead,
> > once he marked a ticket "resolved", the ticket must go over to the QA
> > people. They will perform their tests and finally, either close the
> > ticket or re-assign it to the developer.
> > This is still not resolved for me (has not prio number 1), but I think
> > it is doable by changing the default workflow.
>
> Correct.
>
> First you need to create new permission, e.g. TICKET_CLOSE.
>

And to create your own permissions :
http://nil.checksite.co.uk/post.cfm/trac-0-11-creating-your-own-permissions

Please note the comment by PythonGuy about formating... I still need to get
around sorting out the code display on my blog.... :/

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac Users" group.
To post to this group, send email to trac-users[at]googlegroups.com
To unsubscribe from this group, send email to trac-users+unsubscribe[at]googlegroups.com
For more options, visit this group at http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---


redetin at gmail

Oct 8, 2008, 2:55 AM

Post #9 of 15 (154 views)
Permalink
Re: custom group for ticket permission [In reply to]

Stephen Moretti kirjoitti:
>
>
> 2008/10/8 Jani Tiainen <redetin[at]gmail.com <mailto:redetin[at]gmail.com>>
>
>
> Rainer Sokoll kirjoitti:
> > On Wed, Oct 08, 2008 at 01:59:48AM -0700, Jean Marie wrote:
> >
> >> I want to disallow a group of user to select a certain action for a
> >> ticket, e.g. a developer is not allowed to close a ticket.
> >
> > I have a similar issue. A developer must not close a ticket, instead,
> > once he marked a ticket "resolved", the ticket must go over to the QA
> > people. They will perform their tests and finally, either close the
> > ticket or re-assign it to the developer.
> > This is still not resolved for me (has not prio number 1), but I
> think
> > it is doable by changing the default workflow.
>
> Correct.
>
> First you need to create new permission, e.g. TICKET_CLOSE.
>
>
> And to create your own permissions :
> http://nil.checksite.co.uk/post.cfm/trac-0-11-creating-your-own-permissions

Doesn't that BlackMagicTicketPlugin make possible to create arbitary
permissions for tickets?

--
Jani Tiainen

"Tein sein mihin näillä lahjoilla pystyin.
Tein sen, en yhtään enempää." - Martti Servo & Napander


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac Users" group.
To post to this group, send email to trac-users[at]googlegroups.com
To unsubscribe from this group, send email to trac-users+unsubscribe[at]googlegroups.com
For more options, visit this group at http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---


stephen.moretti at gmail

Oct 8, 2008, 3:02 AM

Post #10 of 15 (154 views)
Permalink
Re: custom group for ticket permission [In reply to]

2008/10/8 Jani Tiainen <redetin[at]gmail.com>

>
> Stephen Moretti kirjoitti:
> >
> >
> > 2008/10/8 Jani Tiainen <redetin[at]gmail.com <mailto:redetin[at]gmail.com>>
> >
> >
> > Rainer Sokoll kirjoitti:
> > > On Wed, Oct 08, 2008 at 01:59:48AM -0700, Jean Marie wrote:
> > >
> > >> I want to disallow a group of user to select a certain action for
> a
> > >> ticket, e.g. a developer is not allowed to close a ticket.
> > >
> > > I have a similar issue. A developer must not close a ticket,
> instead,
> > > once he marked a ticket "resolved", the ticket must go over to the
> QA
> > > people. They will perform their tests and finally, either close
> the
> > > ticket or re-assign it to the developer.
> > > This is still not resolved for me (has not prio number 1), but I
> > think
> > > it is doable by changing the default workflow.
> >
> > Correct.
> >
> > First you need to create new permission, e.g. TICKET_CLOSE.
> >
> >
> > And to create your own permissions :
> >
> http://nil.checksite.co.uk/post.cfm/trac-0-11-creating-your-own-permissions
>
> Doesn't that BlackMagicTicketPlugin make possible to create arbitary
> permissions for tickets?
>

TBH - I haven't looked at BlackMagicTicketPlugin yet, but, and this is the
first time I've looked, the wiki does seem to suggest this.
Using BMTP just for this would make me nervous....

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac Users" group.
To post to this group, send email to trac-users[at]googlegroups.com
To unsubscribe from this group, send email to trac-users+unsubscribe[at]googlegroups.com
For more options, visit this group at http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---


jeanmarie78 at gmx

Oct 8, 2008, 3:06 AM

Post #11 of 15 (154 views)
Permalink
Re: custom group for ticket permission [In reply to]

> Doesn't that BlackMagicTicketPlugin make possible to create arbitary
> permissions for tickets?

With 'BlackMagicTicketPlugin' currently you can only control single
fields of a ticket.

Best regards
Jean Marie

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac Users" group.
To post to this group, send email to trac-users[at]googlegroups.com
To unsubscribe from this group, send email to trac-users+unsubscribe[at]googlegroups.com
For more options, visit this group at http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---


thomas.moschny at gmail

Oct 8, 2008, 3:12 AM

Post #12 of 15 (154 views)
Permalink
Re: custom group for ticket permission [In reply to]

2008/10/8 Jani Tiainen <redetin[at]gmail.com>:
> Doesn't that BlackMagicTicketPlugin make possible to create arbitary
> permissions for tickets?

Side note: Does it really enforce permissions or does it rather make
fields un-editable via Genshi transformations? This is not the same.

- Thomas

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac Users" group.
To post to this group, send email to trac-users[at]googlegroups.com
To unsubscribe from this group, send email to trac-users+unsubscribe[at]googlegroups.com
For more options, visit this group at http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---


jeanmarie78 at gmx

Oct 8, 2008, 3:21 AM

Post #13 of 15 (154 views)
Permalink
Re: custom group for ticket permission [In reply to]

Hi Jani,

> First you need to create new permission, e.g. TICKET_CLOSE.

How can i do this?

Best regards
Jean Marie
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac Users" group.
To post to this group, send email to trac-users[at]googlegroups.com
To unsubscribe from this group, send email to trac-users+unsubscribe[at]googlegroups.com
For more options, visit this group at http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---


jeanmarie78 at gmx

Oct 8, 2008, 5:19 AM

Post #14 of 15 (154 views)
Permalink
Re: custom group for ticket permission [In reply to]

> > First you need to create new permission, e.g. TICKET_CLOSE.
>
> How can i do this?

I found an intermediate solution by "hacking" the database:

INSERT INTO permission (username, action) VALUES ("group_qa",
"TICKET_CLOSE");

After this, the manuall added permissions assignment is visible in the
admin section and also the trac-admin shows me this assignment.

In trac.ini i've set:
[ticket-workflow]
close.permissions = TICKET_CLOSE

Now only users that are members of group "group_qa" are able to close
a ticket.

For the moment this solution is fine by me. Are there any doubts about
this solution?

Maybe there'll be a more elegant way of adding user defined
permissions.

Best regards
Jean Marie
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac Users" group.
To post to this group, send email to trac-users[at]googlegroups.com
To unsubscribe from this group, send email to trac-users+unsubscribe[at]googlegroups.com
For more options, visit this group at http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---


yoheeb at gmail

Oct 8, 2008, 6:36 AM

Post #15 of 15 (154 views)
Permalink
Re: custom group for ticket permission [In reply to]

On Oct 8, 7:19 am, Jean Marie <jeanmari...@gmx.net> wrote:
> > > First you need to create new permission, e.g. TICKET_CLOSE.
>
> > How can i do this?
>
> I  found an intermediate solution by "hacking" the database:
>
>     INSERT INTO permission (username, action) VALUES ("group_qa",
> "TICKET_CLOSE");
>
> After this, the manuall added permissions assignment is visible in the
> admin section and also the trac-admin shows me this assignment.
>
> In trac.ini i've set:
>     [ticket-workflow]
>     close.permissions = TICKET_CLOSE
>
> Now only users that are members of group "group_qa" are able to close
> a ticket.
>
> For the moment this solution is fine by me. Are there any doubts about
> this solution?
>
> Maybe there'll be a more elegant way of adding user defined
> permissions.
>
> Best regards
> Jean Marie

AHH, bad idea.

stated about 3 responses up :
>And to create your own permissions :
>http://nil.checksite.co.uk/post.cfm/trac-0-11-creating-your-own-permissions

again, note his code isn't formatted properly for python on that web
site.

in this thread:
http://groups.google.com/group/trac-users/browse_thread/thread/79b11813a0cd25ab/e1710f4f7dc76cf3?hl=en&lnk=gst&q=custom+permissions#e1710f4f7dc76cf3
I posted a copy of it, which "should" be formatted. however, it is
a google email group, so ymmv

create that python file (modified for your permission(s) , drop it in
your plugins directory, restart your server, and you should be good
to go. you may need to enable the plugin in the web admin, I forget.

additionally, you MAY want to take a look at the "enterprise-workflow"
in the contrib directory, which has a resloved->verfied type workflow,
plus a special ticket handler to prevent the person that resolved a
ticket from verifying it. Maybe combine the 2.

we implement a custom workflow with resolved->verified. but we don't
enforce who verifies, since this step is basically author testing/
verification it was merged into the trunk. we have a separate qa step
that tests irrespective of tickets.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac Users" group.
To post to this group, send email to trac-users[at]googlegroups.com
To unsubscribe from this group, send email to trac-users+unsubscribe[at]googlegroups.com
For more options, visit this group at http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Trac users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.