Setting proxy Task Submitter

Discuss problems installing or using TrackStudio.

Setting proxy Task Submitter

Postby trackman » Fri Nov 30, 2007 7:27 pm

A constraint within TrackStudio is that when a task is created it has to be attached to a workflow and the workflow to which that task is attached cannot subsequently be changed.

One of the ways to overcome this is to close that task and open another task that is connected to the appropriate workflow. The problem with doing this is that unless the person creating the second task is also the person who created the first one, the Submitter of second task will be different to the person who submitted the first one.

What I am therefore wondering is whether it is possible to create a mechanism that allows someone to submit a task on behalf of someone else. Given that the submitter of a task is so useful within TS, being able to set the "real" submitter would be very useful.

The mechanism I have tried goes like this:

1) I have a UDF field "Original submitter" that is populated with the user login of the person who created the first task.

2) I then have create a Create Task/BEFORE Trigger:
Code: Select all
String value = task.getUdfValue("Original submitter");
   if (value!=null){
  task.setSubmitter(value);
}
return task;


but this doesn't seem to work. I have also tried an AFTER trigger.

Is my trigger wrong or is changing the Submitter in this way not possible?
trackman
 
Posts: 61
Joined: Mon Jul 23, 2007 8:38 pm
Location: Cheltenham

Re: Setting proxy Task Submitter

Postby admin » Fri Nov 30, 2007 11:10 pm

You cannot change submitter, task number and some other properties in triggers (kernel API doesn't support it). I see no good way to solve this problem now.
Maxim Kramarenko (mailto: maximkr@trackstudio.com)
TrackStudio - Hierarchical Bug & Issue Tracking Software
http://www.trackstudio.com
admin
Site Admin
 
Posts: 7305
Joined: Thu Jan 01, 1970 3:00 am
Location: Smolensk, Russia

Re: Setting proxy Task Submitter

Postby PavelKolarik » Thu Apr 15, 2010 5:41 pm

admin wrote:You cannot change submitter, task number and some other properties in triggers (kernel API doesn't support it). I see no good way to solve this problem now.


I would like to ask concerning this old topic... The TS kernel still does not support changing a submitter, does it? We would like that :) Sometimes the physical submitter is only a temporary person and the real submitter (person who wants the task to be done) is somebody else. Of course, it can be solved using an UDF field etc., but native TS' feature would be better...
PavelKolarik
 
Posts: 79
Joined: Thu Oct 19, 2006 10:32 am
Location: Opava, Czech Republic

Re: Setting proxy Task Submitter

Postby admin » Fri Apr 16, 2010 8:56 am

Hello!

You cannot change submitter this way - it can cause many internal problems.

There are 2 ways to work around it:
1) You can use "logon as another user" feature - manager can login as subordinate user using user's login and own password.
2) You can add custom field "Customer" to store end-user name.
Maxim Kramarenko (mailto: maximkr@trackstudio.com)
TrackStudio - Hierarchical Bug & Issue Tracking Software
http://www.trackstudio.com
admin
Site Admin
 
Posts: 7305
Joined: Thu Jan 01, 1970 3:00 am
Location: Smolensk, Russia

Re: Setting proxy Task Submitter

Postby PavelKolarik » Fri Apr 16, 2010 9:43 am

admin wrote:1) You can use "logon as another user" feature - manager can login as subordinate user using user's login and own password.

This does not help us for here but thanks for the info - we can use this functionality for other purposes. How can I login as my subordinate? I have not found way how to do it.

admin wrote:2) You can add custom field "Customer" to store end-user name.

Yes, generally we are going this way...
PavelKolarik
 
Posts: 79
Joined: Thu Oct 19, 2006 10:32 am
Location: Opava, Czech Republic

Re: Setting proxy Task Submitter

Postby admin » Fri Apr 16, 2010 10:10 am

Just try to login using subordinate user loging and own password.

This means, that you can login as any user using root's password.
Maxim Kramarenko (mailto: maximkr@trackstudio.com)
TrackStudio - Hierarchical Bug & Issue Tracking Software
http://www.trackstudio.com
admin
Site Admin
 
Posts: 7305
Joined: Thu Jan 01, 1970 3:00 am
Location: Smolensk, Russia

Re: Setting proxy Task Submitter

Postby PavelKolarik » Fri Apr 16, 2010 10:25 am

I see, thanks, it works.

Later edit: As far as I tried, it works for subordinate users within the user tree. It would be nice also to be able to login as a user who is not my subordinate in the user tree but I have an access to him. For example User Action Permissions could contain a new permission "Can login as a subordinate user"
PavelKolarik
 
Posts: 79
Joined: Thu Oct 19, 2006 10:32 am
Location: Opava, Czech Republic

Re: Setting proxy Task Submitter

Postby admin » Sat Apr 17, 2010 9:59 am

PavelKolarik wrote:Later edit: As far as I tried, it works for subordinate users within the user tree. It would be nice also to be able to login as a user who is not my subordinate in the user tree but I have an access to him. For example User Action Permissions could contain a new permission "Can login as a subordinate user"


It's more difficult to implement, because you can have access to another user with different permissions. For example, support team member can see customer's accounts somewhere in user tree, but cannot login as customer or change customer account settings.
Maxim Kramarenko (mailto: maximkr@trackstudio.com)
TrackStudio - Hierarchical Bug & Issue Tracking Software
http://www.trackstudio.com
admin
Site Admin
 
Posts: 7305
Joined: Thu Jan 01, 1970 3:00 am
Location: Smolensk, Russia


Return to TrackStudio Support

Who is online

Users browsing this forum: No registered users and 1 guest