[Solved]Auto setting owner as the current login user in process ticket

Moderator: crythias

Locked
harrypet
Znuny newbie
Posts: 23
Joined: 02 Feb 2020, 16:11
Znuny Version: OTRS 6
Real Name: Fung Harry

[Solved]Auto setting owner as the current login user in process ticket

Post by harrypet »

Hi all,

I am trying to set the owner as the current login user automatically when the process ticket is created. ( No need to select the owner by him/herself).

I try to configure this setting in transition action.

Here's what I did.
Capture.PNG
Is that the <OTRS_CURRENT_Userlogin> is not working? or did I have sth configuring wrongly?

It would be glad for any reply and help. Thanks.

Best Regards,
Harry
You do not have the required permissions to view the files attached to this post.
Last edited by harrypet on 11 Mar 2020, 05:07, edited 1 time in total.
skullz
Znuny superhero
Posts: 658
Joined: 24 Feb 2012, 03:58
Znuny Version: LTS and Features
Real Name: Mo Azfar
Location: Kuala Lumpur, MY
Contact:

Re: Auto setting owner as the current login user in process ticket

Post by skullz »

Try,

Module => TicketLockSet
Key: Lock Value: lock

Good luck
My Github
OTRS CE/LTS Discord Channel
Cant Update Package Anymore ? Check This

Professional OTRS, Znuny & OTOBO services: efflux.de/en
Free and premium add-ons: English
harrypet
Znuny newbie
Posts: 23
Joined: 02 Feb 2020, 16:11
Znuny Version: OTRS 6
Real Name: Fung Harry

Re: Auto setting owner as the current login user in process ticket

Post by harrypet »

Hey man,

What is the use of setting the Lock as lock?
I have tried and the owner wouldn't change. It is still the Admin OTRS.
Capture.JPG
I would like to set the owner in process information as the current login user automatically after he/she created a ticket.

BTW, thanks for replying.

Best regards,
Harry
You do not have the required permissions to view the files attached to this post.
wurzel
Znuny guru
Posts: 3273
Joined: 08 Jul 2010, 22:25
Znuny Version: x.x.x
Real Name: Florian

Re: Auto setting owner as the current login user in process ticket

Post by wurzel »

Hi,

AFAIK <OTRS_CURRENT_Userlogin>
is not possible.

Flo
OTRS 2025 SILVER (Prod)
OTRS 2025 auf Debian 12 (Test)
Znuny 7.x latest version testing auf Debian 12

-- Ich beantworte keine Forums-Fragen PN - No PN please

I won't answer to unfriendly users any more. A greeting and regards are just polite.
root
Administrator
Posts: 4251
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: Auto setting owner as the current login user in process ticket

Post by root »

Hi,

The transition action is TicketOwnerSet, but as far as I know, there is no way to use the UserID of the current agent as a parameter. The commercial package Znuny4OTRS-AdvancedProcessManagement enable tag with the current user

- Roy
Znuny and Znuny LTS running on CentOS / RHEL / Debian / SLES / MySQL / PostgreSQL / Oracle / OpenLDAP / Active Directory / SSO

Use a test system - always.

Do you need professional services? Check out https://www.znuny.com/

Do you want to contribute or want to know where it goes ?
skullz
Znuny superhero
Posts: 658
Joined: 24 Feb 2012, 03:58
Znuny Version: LTS and Features
Real Name: Mo Azfar
Location: Kuala Lumpur, MY
Contact:

Re: Auto setting owner as the current login user in process ticket

Post by skullz »

harrypet wrote: 04 Mar 2020, 11:16 Hey man,

What is the use of setting the Lock as lock?
I have tried and the owner wouldn't change. It is still the Admin OTRS.
Capture.JPG
I would like to set the owner in process information as the current login user automatically after he/she created a ticket.

BTW, thanks for replying.

Best regards,
Harry
Lock is to determine an agent is working on the ticket..thus if the ticket is originally unlock, when lock, it should auto assign current user as owner..

Not sure why its not working..also you can try

Module => TicketOwnerSet
Key: OwnerID Value: <OTRS_Ticket_Created>
Key: UserID Value: 1

*this will assign the ticket creator as ticket owner. So, i think this process must be start only in agent portal.
My Github
OTRS CE/LTS Discord Channel
Cant Update Package Anymore ? Check This

Professional OTRS, Znuny & OTOBO services: efflux.de/en
Free and premium add-ons: English
root
Administrator
Posts: 4251
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: Auto setting owner as the current login user in process ticket

Post by root »

skullz wrote: 04 Mar 2020, 14:55 <OTRS_Ticket_Created>
Hi,

This should be a timestamp, maybe <OTRS_Ticket_CreatedBy> works. Never tried it.

- Roy
Znuny and Znuny LTS running on CentOS / RHEL / Debian / SLES / MySQL / PostgreSQL / Oracle / OpenLDAP / Active Directory / SSO

Use a test system - always.

Do you need professional services? Check out https://www.znuny.com/

Do you want to contribute or want to know where it goes ?
harrypet
Znuny newbie
Posts: 23
Joined: 02 Feb 2020, 16:11
Znuny Version: OTRS 6
Real Name: Fung Harry

Re: Auto setting owner as the current login user in process ticket

Post by harrypet »

skullz wrote: 04 Mar 2020, 14:55
Lock is to determine an agent is working on the ticket..thus if the ticket is originally unlock, when lock, it should auto assign current user as owner..

Not sure why its not working..also you can try

Module => TicketOwnerSet
Key: OwnerID Value: <OTRS_Ticket_Created>
Key: UserID Value: 1

*this will assign the ticket creator as ticket owner. So, i think this process must be start only in agent portal.
Hey guys,
I have tried to use [Key: OwnerID Value: <OTRS_Ticket_Created> /<OTRS_Ticket_CreatedBy> Key: UserID Value: 1] in my ticket. Seems like this otrs tag is not working also.

Thanks for the help. I don't know whether there is a solution apart from purchasing the commercial package. :lol:

Best regards,
Harry
skullz
Znuny superhero
Posts: 658
Joined: 24 Feb 2012, 03:58
Znuny Version: LTS and Features
Real Name: Mo Azfar
Location: Kuala Lumpur, MY
Contact:

Re: Auto setting owner as the current login user in process ticket

Post by skullz »

root wrote: 04 Mar 2020, 18:24
skullz wrote: 04 Mar 2020, 14:55 <OTRS_Ticket_Created>
Hi,

This should be a timestamp, maybe <OTRS_Ticket_CreatedBy> works. Never tried it.

- Roy
harrypet wrote: 05 Mar 2020, 03:43
skullz wrote: 04 Mar 2020, 14:55
Lock is to determine an agent is working on the ticket..thus if the ticket is originally unlock, when lock, it should auto assign current user as owner..

Not sure why its not working..also you can try

Module => TicketOwnerSet
Key: OwnerID Value: <OTRS_Ticket_Created>
Key: UserID Value: 1

*this will assign the ticket creator as ticket owner. So, i think this process must be start only in agent portal.
Hey guys,
I have tried to use [Key: OwnerID Value: <OTRS_Ticket_Created> /<OTRS_Ticket_CreatedBy> Key: UserID Value: 1] in my ticket. Seems like this otrs tag is not working also.

Thanks for the help. I don't know whether there is a solution apart from purchasing the commercial package. :lol:

Best regards,
Harry
yupp..my bad for not checking my process first..
<OTRS_TICKET_CreateBy>
it should be as below..at least it worked on my v6.
Capture.PNG
You do not have the required permissions to view the files attached to this post.
My Github
OTRS CE/LTS Discord Channel
Cant Update Package Anymore ? Check This

Professional OTRS, Znuny & OTOBO services: efflux.de/en
Free and premium add-ons: English
root
Administrator
Posts: 4251
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: Auto setting owner as the current login user in process ticket

Post by root »

skullz wrote: 05 Mar 2020, 05:35 yupp..my bad for not checking my process first..
<OTRS_TICKET_CreateBy>
it should be as below..at least it worked on my v6.
Great, so as long as the tags are <OTRS_TICKET_*> there's no need for a commercial package.

- Roy
Znuny and Znuny LTS running on CentOS / RHEL / Debian / SLES / MySQL / PostgreSQL / Oracle / OpenLDAP / Active Directory / SSO

Use a test system - always.

Do you need professional services? Check out https://www.znuny.com/

Do you want to contribute or want to know where it goes ?
harrypet
Znuny newbie
Posts: 23
Joined: 02 Feb 2020, 16:11
Znuny Version: OTRS 6
Real Name: Fung Harry

Re: Auto setting owner as the current login user in process ticket

Post by harrypet »

Hey guys,

<OTRS_TICKET_CreateBy> work fine. Thanks Roy and skullz.

Best Regards,
Harry
Locked