Owner/User Name Tags

Moderator: crythias

Locked
PhyrePhoX
Znuny advanced
Posts: 133
Joined: 05 Dec 2007, 10:56
Znuny Version: 5.0.24 (with ITSM Mo

Owner/User Name Tags

Post by PhyrePhoX »

Hi,

i have trouble using the tags for the owner of a ticket when i create a link.

Code: Select all

[% data.UserFullName | uri %]
does not work. Any other iteration i tried also does not work.

Code: Select all

<OTRS_OWNER_*> or <OTRS_TICKET_OWNER_*> 
Not sure what the difference is between otrs_owner and otrs_ticket_owner?

Also tried

Code: Select all

[% Data.Owner_UserFirstName | uri %]
or

Code: Select all

[% Owner.UserFirstName | uri %]

But the result is always the same = empty.

This is the full link (to create a jira issue from within otrs): Every tag works, except the reporter field (=should be OTRS Ticket Owner details, Name, Surname, Full name, etc)

Code: Select all

https://jira.xyz.org/secure/CreateIssueDetails!init.jspa?pid=10000&issuetype=10000&summary=[% Data.Title | uri %]&priority=4&customfield_10009=[% Data.Created | uri %]&description=https://redmine.pb.local/issues/[% Data.DynamicField_Redmine | uri %]%0AOTRS:%20[% Data.TicketNumber | uri %]&reporter=[% Data.UserFirstname | uri %]
Does any of you have an idea?

Thanks, PhoX
OTRS 5.0.24 (with ITSM Modules) and Znuny 6.4.4 in staging
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: Owner/User Name Tags

Post by skullz »

If building a link using Config.pm,

Owner=[% Data.Owner | uri %] only can show the owner username only..

Perhaps writing some generic agent upon owner update event to update some dynamic field with owner fullname..from there can get the details from the dynamic field instead.
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
PhyrePhoX
Znuny advanced
Posts: 133
Joined: 05 Dec 2007, 10:56
Znuny Version: 5.0.24 (with ITSM Mo

Re: Owner/User Name Tags

Post by PhyrePhoX »

skullz wrote: 03 Jun 2020, 13:16 If building a link using Config.pm,

Owner=[% Data.Owner | uri %] only can show the owner username only..

Perhaps writing some generic agent upon owner update event to update some dynamic field with owner fullname..from there can get the details from the dynamic field instead.
thanks, this helps me at least a little bit. It surprises me a lot, though - that i cannot use all field in all forms at all times.
So how would the generic agent look like?
Screenshot from 2020-06-03 14-59-28.png
I can use Owner=[% Data.Owner | uri %] in there? Or Data.OwnerUserFirstName for that matter?
You do not have the required permissions to view the files attached to this post.
OTRS 5.0.24 (with ITSM Modules) and Znuny 6.4.4 in staging
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: Owner/User Name Tags

Post by skullz »

PhyrePhoX wrote: 03 Jun 2020, 15:04
skullz wrote: 03 Jun 2020, 13:16 If building a link using Config.pm,

Owner=[% Data.Owner | uri %] only can show the owner username only..

Perhaps writing some generic agent upon owner update event to update some dynamic field with owner fullname..from there can get the details from the dynamic field instead.
thanks, this helps me at least a little bit. It surprises me a lot, though - that i cannot use all field in all forms at all times.
So how would the generic agent look like?
Screenshot from 2020-06-03 14-59-28.png
I can use Owner=[% Data.Owner | uri %] in there? Or Data.OwnerUserFirstName for that matter?
if using [% Data.Owner | uri %], you can append directly to the url, however its only show owner username instead of fullname.

What i means by 'writing some generic agent' is definitely by code level (to get owner fullname, etc).

Image
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
Locked