(SOLVED) Dynamic field is not setting on new tickets

Moderator: crythias

Locked
bayerex
Znuny expert
Posts: 164
Joined: 03 Dec 2012, 00:30
Znuny Version: 3.2.7

(SOLVED) Dynamic field is not setting on new tickets

Post by bayerex »

Hi,

I've created a dynamic field dropdown with a default value set. This works ok for agents but not for customers. After a customer creates a ticket the value is blank, presumably because the field is only displayed on the agent new ticket form and has not been added to the customer form.

I assumed that because the field has a default value that it does not need to be displayed on the form. So my question is how can I ensure that this default value is input into the ticket without the customer seeing the field?

Would the solution be to add this field to the customer form but make it hidden?

Thanks for your help.
Current Production Server (recently switched from Windows)
OTRS 3.2.7 on Ubuntu 12.04LTS 64bit
PHP 5.3.10-1ubuntu3.6
mysql Ver 14.14 Distrib 5.5.31

Previous Production Server:
Windows 2008
MySQL 5.1.51 Community Server
Strawberry Perl 5.12.3.0
bayerex
Znuny expert
Posts: 164
Joined: 03 Dec 2012, 00:30
Znuny Version: 3.2.7

Re: (SOLVED) Dynamic field is not setting on new tickets

Post by bayerex »

I've solved this with a bit of Javasript at the end of CustomerTicket

Code: Select all

document.getElementById("LabelDynamicField_WorkflowProcess").style.display = 'none';
document.getElementById("DynamicField_WorkflowProcess").style.display = 'none';
The problem remains of a blank value when customers emails a ticket but to save confusion I'll write ask about this on a different post
Current Production Server (recently switched from Windows)
OTRS 3.2.7 on Ubuntu 12.04LTS 64bit
PHP 5.3.10-1ubuntu3.6
mysql Ver 14.14 Distrib 5.5.31

Previous Production Server:
Windows 2008
MySQL 5.1.51 Community Server
Strawberry Perl 5.12.3.0
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: (SOLVED) Dynamic field is not setting on new tickets

Post by crythias »

If the same value is assigned to all new tickets ... what's the point of assigning this value?

More to the point why isn't ticket state "new" relevant to your workflow process?

Or even, why isn't the ticket state indicative of your workflow process?
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
bayerex
Znuny expert
Posts: 164
Joined: 03 Dec 2012, 00:30
Znuny Version: 3.2.7

Re: (SOLVED) Dynamic field is not setting on new tickets

Post by bayerex »

crythias wrote:If the same value is assigned to all new tickets ... what's the point of assigning this value?

More to the point why isn't ticket state "new" relevant to your workflow process?

Or even, why isn't the ticket state indicative of your workflow process?
Because in our workflow, when an owner wishes to involve a developer they assign them as responsible and change the workflowprocess field to 'developerment'. When the developer has finished their work they change the workflowprocess to 'support' but remins responsible on the ticket. The support person answers the customer and later closes the ticket. This allows us to share the same queues and create seperation in our searches.
Current Production Server (recently switched from Windows)
OTRS 3.2.7 on Ubuntu 12.04LTS 64bit
PHP 5.3.10-1ubuntu3.6
mysql Ver 14.14 Distrib 5.5.31

Previous Production Server:
Windows 2008
MySQL 5.1.51 Community Server
Strawberry Perl 5.12.3.0
bayerex
Znuny expert
Posts: 164
Joined: 03 Dec 2012, 00:30
Znuny Version: 3.2.7

Re: (SOLVED) Dynamic field is not setting on new tickets

Post by bayerex »

The decision was taken to design it this way because the developers can have potentially hundreds of tickets in their queues and once they have written a solution they do not want the ticket visible in their queue anymore.

At the same time the company won't allow developers to remove themselves from being responsible to the ticket as they want this to be searchable.

Using a dynamic field was in the end a happy compromise.
Current Production Server (recently switched from Windows)
OTRS 3.2.7 on Ubuntu 12.04LTS 64bit
PHP 5.3.10-1ubuntu3.6
mysql Ver 14.14 Distrib 5.5.31

Previous Production Server:
Windows 2008
MySQL 5.1.51 Community Server
Strawberry Perl 5.12.3.0
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: (SOLVED) Dynamic field is not setting on new tickets

Post by crythias »

Another option:
Queues for workflow.
bayerex wrote: once they have written a solution they do not want the ticket visible in their queue anymore.
Which means they can send it back to the Support queue when they've written the solution. And support can send it to developer queue when they need dev to update it.
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
bayerex
Znuny expert
Posts: 164
Joined: 03 Dec 2012, 00:30
Znuny Version: 3.2.7

Re: (SOLVED) Dynamic field is not setting on new tickets

Post by bayerex »

crythias wrote:Another option:
Queues for workflow.
bayerex wrote: once they have written a solution they do not want the ticket visible in their queue anymore.
Which means they can send it back to the Support queue when they've written the solution. And support can send it to developer queue when they need dev to update it.
That would mean doubling all our queues. There are already about 7 different queues depending on the product group. At the moment that wouldn't simplify things any further
Current Production Server (recently switched from Windows)
OTRS 3.2.7 on Ubuntu 12.04LTS 64bit
PHP 5.3.10-1ubuntu3.6
mysql Ver 14.14 Distrib 5.5.31

Previous Production Server:
Windows 2008
MySQL 5.1.51 Community Server
Strawberry Perl 5.12.3.0
Locked