/build/static/layout/Breadcrumb_cap_w.png

Unhiding Hidden Fields on Ticket Save

I'm trying to avoid having to setup a separate queue with different fields in the ticket layout by only having certain fields appear when specific values are entered in a single-select Custom Fields entry, but I have no idea what SQL code to use in the ticket rule to make the specified fields change from Hidden to User Create.

As an example:

I'm setting up the CUSTOM_2 (GUI) field as single-select with the values of Trouble Ticket (the default value), System Access - Add, System Access - Change, and System Access - Delete. I'm assuming I should specify HD_TICKET.CUSTOM_FIELD_VALUE1 for this field.

When the default value (Trouble Ticket) is specified, all hidden fields will remain hidden. However, when any of the other values is selected (i.e. System Access - Add, System Access - Change, or System Access - Delete), the specified hidden fields (i.e. T.CUSTOM_FIELD_VALUE4, T.CUSTOM_FIELD_VALUE5, etc) will appear in the ticket. I'm assuming this setup would require a "run ticket rule on ticket save" and the ticket would need to be saved before these fields become unhidden and available as User Create fields, but if it's possible to have them appear when the single-select field is changed to a non-default value that would be great.

Would anyone be able to get me pointed in the right direction with what SQL commands I could use to do this?

I'm assuming logic something like:

IF HD_TICKET.CUSTOM_FIELD_VALUE1 != <default>
THEN T.CUSTOM_FIELD_VALUE4 type = USER CREATE
AND T.CUSTOM_FIELD_VALUE5 type = USER CREATE
AND T.CUSTOM_FIELD_VALUE6 type = USER CREATE

If any clarification or a more detailed example is needed, please let me know. If I can get this working, it will save me a lot of time building and maintaining another queue just for user changes.

Thanks very much!!!

John

0 Comments   [ + ] Show comments

Answers (2)

Posted by: GillySpy 13 years ago
7th Degree Black Belt
0
However, when any of the other values is selected (i.e. System Access - Add, System Access - Change, or System Access - Delete), the specified hidden fields (i.e. T.CUSTOM_FIELD_VALUE4, T.CUSTOM_FIELD_VALUE5, etc) will appear in the ticket

Unless you mean to say that "...when any of the values is select in any single ticket in this queue..." then this isn't possible because the changes you are making affect ALL tickets. You either hide the field for all tickets or not.

Can you clarify?
Posted by: jverbosk 13 years ago
Red Belt
0
Yes, what you reworded was my aim and after more thought I understand your point about fields either being hidden for all tickets or not. At this point I'll look into separate queues.

Thanks for your help!

John
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

Share

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ