Dynamic field filled via web service
Moderator: crythias
-
mgiammarco
- Znuny newbie
- Posts: 2
- Joined: 05 Mar 2012, 13:39
- Znuny Version: otrs31
Dynamic field filled via web service
Hello,
I am learning otrs and I would like to know if this thing is possible:
- I would like to add a dynamic field to customer "new ticket" page. The field must have 5 digits. Then in the agent page I need to show the result of a web service call that have the 5 digits as input.
Can you help me?
Thanks,
Mario
I am learning otrs and I would like to know if this thing is possible:
- I would like to add a dynamic field to customer "new ticket" page. The field must have 5 digits. Then in the agent page I need to show the result of a web service call that have the 5 digits as input.
Can you help me?
Thanks,
Mario
-
artjoms15
- Znuny advanced
- Posts: 121
- Joined: 30 Aug 2011, 10:48
- Znuny Version: 3.3.8 && 4.0.9
- Real Name: Artjoms Petrovs
- Location: Latvia
Re: Dynamic field filled via web service
Well... as I know you can customize everything you want by editing either .dtl files (mostly client side stuff) or .pm files (what does server generate).
What would I do is making a simple dynamic field and afterwards set limitation via JavaScript (I know it is heavy and chubby, but ohh come on it is one statement per submit)
if (getElementByID('DynamicFields_XXX).length==0 or getElementByID('DynamicFields_XXX).length==5)
{
submit();
}
and set it on the submit button press event
(P.S. Do not have an OTRS instance near me at the moment, so these are just my thoughts how to do the task)
What would I do is making a simple dynamic field and afterwards set limitation via JavaScript (I know it is heavy and chubby, but ohh come on it is one statement per submit)
if (getElementByID('DynamicFields_XXX).length==0 or getElementByID('DynamicFields_XXX).length==5)
{
submit();
}
and set it on the submit button press event
(P.S. Do not have an OTRS instance near me at the moment, so these are just my thoughts how to do the task)
Ar cieņu / Kind regards,
----------------------------------------
Artjoms Petrovs
Sistēmu analītiķis/Programmētājs /
Systems Analyst/Programmer
----------------------------------------
Artjoms Petrovs
Sistēmu analītiķis/Programmētājs /
Systems Analyst/Programmer
Re: Dynamic field filled via web service
hi experts!
we have 2 Dynamic dropdown fields.we are using OTRS3.1.2 version.In this what i need is,depend on first dynamic dropdown field value second dynamic field value should change.i wnt to appear this thing in agent frontend while creating ticket..
Can you help me?
Thanks>
we have 2 Dynamic dropdown fields.we are using OTRS3.1.2 version.In this what i need is,depend on first dynamic dropdown field value second dynamic field value should change.i wnt to appear this thing in agent frontend while creating ticket..
Can you help me?
Thanks>
OTRS 3.1.X
-
yuri0001
- Znuny superhero
- Posts: 630
- Joined: 17 Mar 2011, 14:40
- Znuny Version: 5.0.6
- Real Name: Yuri Kolesnikov
- Location: Russia
Re: Dynamic field filled via web service
ACL will help you - http://doc.otrs.org/3.1/en/html/ch18s03.htmlnickyls wrote: we have 2 Dynamic dropdown fields.we are using OTRS3.1.2 version.In this what i need is,depend on first dynamic dropdown field value second dynamic field value should change.i wnt to appear this thing in agent frontend while creating ticket..
Can you help me?
Best regards Yuri Kolesnikov
OTRS 5.0.14, ITSM 5.0.14
SUSE 13.2, MariaDB 10.0.22(productive)
OTRS 5.0.14, ITSM 5.0.14(test)
OTRS 5.0.14, ITSM 5.0.14
SUSE 13.2, MariaDB 10.0.22(productive)
OTRS 5.0.14, ITSM 5.0.14(test)
Re: Dynamic field filled via web service
here i have given my code.in the agent phone ticket creating we have "queue1".next we have dropdown field "drop2" depend on dropdown field chosen by agent, dropdown field "drop1" should appear in agent interface.
please suggest me if you find anything wrong in this............
Code: Select all
# ticket acl
$Self->{TicketAcl}->{'200-ACL-Reference'} = {
# current ticket match properties
Ticket => {
Queue => ['queue1'],
DynamicField_Field1 => ['drop2'],
DynamicField_MyField => ['type of problem'],
DynamicField_TicketFreeText2 => ['personal'],
},
# return possible options (white list)
Possible => {
# possible ticket options (white list)
Ticket => {
Queue => ['queue1'],
#State => ['some state'],
#Priority => ['5 very high'],
DynamicField_Field1 => ['drop1'],
DynamicField_MyField => ['error detail'],
DynamicField_TicketFreeText2 => ['login error']
# ...
}
},
};OTRS 3.1.X
-
yuri0001
- Znuny superhero
- Posts: 630
- Joined: 17 Mar 2011, 14:40
- Znuny Version: 5.0.6
- Real Name: Yuri Kolesnikov
- Location: Russia
Re: Dynamic field filled via web service
1. You missed Properties keyword
2.Try to delete Ticket => phrase in Properties, because your ticket at this time not yet been created (modify the syntax accordingly)
2.Try to delete Ticket => phrase in Properties, because your ticket at this time not yet been created (modify the syntax accordingly)
Best regards Yuri Kolesnikov
OTRS 5.0.14, ITSM 5.0.14
SUSE 13.2, MariaDB 10.0.22(productive)
OTRS 5.0.14, ITSM 5.0.14(test)
OTRS 5.0.14, ITSM 5.0.14
SUSE 13.2, MariaDB 10.0.22(productive)
OTRS 5.0.14, ITSM 5.0.14(test)
Re: Dynamic field filled via web service
ok.thanks alot .apart from acl,where should i have to change in sysconfig for displaying & controlling these fields?
OTRS 3.1.X
-
srivatsatatti
- Znuny newbie
- Posts: 85
- Joined: 25 Jan 2011, 06:54
- Znuny Version: OTRS 3
- Company: eStomi Technologies Pvt Ltd
- Contact:
Re: Dynamic field filled via web service
I would like to make Dynamic Field disabled based on Queue while adding a note/ moving the ticket
OTRS 3.2.x, Linux Ubuntu, Mysql 5.1.
-
crythias
- Moderator
- Posts: 10170
- Joined: 04 May 2010, 18:38
- Znuny Version: 5.0.x
- Location: SouthWest Florida, USA
- Contact:
Re: Dynamic field filled via web service
This request isn't relevant to this thread...?srivatsatatti wrote:Re: Dynamic field filled via web service
by srivatsatatti » Today, 7:07 am
I would like to make Dynamic Field disabled based on Queue while adding a note/ moving the ticket
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask