Browse Guides

BACK TO TOP
Ticket Creation Validation
Reading mode
Copy Link
Link Copied!
Print
Feedback
This guide is part of a collection:
<style> .chartjs-size-monitor { display: none !important; height: 0 !important; overflow: hidden !important; }p { margin: 0; }span.fr-emoticon.fr-emoticon-img { background-repeat: no-repeat !important; font-size: inherit; height: 1em; width: 1em; min-height: 20px; min-width: 20px; display: inline-block; margin: -0.1em 0.1em 0.1em; line-height: 1; vertical-align: middle; } span.fr-emoticon { font-weight: normal; font-family: "Apple Color Emoji", "Segoe UI Emoji", "NotoColorEmoji", "Segoe UI Symbol", "Android Emoji", "EmojiSymbols"; display: inline; line-height: 0; } blockquote { border-left: solid 2px #5e35b1; color: #5e35b1; margin-left:0; padding-left:5px;}blockquote blockquote{ border-color: #00bcd4; color: #00bcd4;}blockquote blockquote blockquote{ border-color: #43a047; color: #43a047;} table.grid{ border-collapse: collapse;} table.grid td, table.grid th { border: 1px solid #ddd;} .fr-fic.fr-dib{ display: block; margin: 5px auto;}.fr-fic.fr-dib.fr-fir{ text-align: right; margin: 5px 0 5px auto;}.fr-fic.fr-dib.fr-fil{ text-align: left; margin: 5px auto 5px 0;}.fr-fic.fr-dii{ float: none; margin: 5px auto;}.fr-fic.fr-dii.fr-fil{ float: left; margin: 5px auto;}.fr-fic.fr-dii.fr-fir{ float: right; margin: 5px auto;}img.fr-dib.fr-fir { margin-right: 0; text-align: right;}img.fr-dib.fr-fil { margin-left: 0; text-align: left;}img.fr-dib { margin: 5px auto; display: block; float: none;}img.fr-bordered { box-sizing: content-box; border: solid 5px #CCC;}img.fr-shadow { box-shadow: 10px 10px 5px 0px #cccccc;}img.fr-rounded { border-radius: 10px; -moz-border-radius: 10px; -webkit-border-radius: 10px; -moz-background-clip: padding; -webkit-background-clip: padding-box; background-clip: padding-box;}</style><p><strong>In this guide we will cover:</strong></p><p><strong>- Start/Target Date Validation</strong></p><p><strong>- Field Value Validation&nbsp;</strong></p><p><br></p><p>Validation conditions can be added to ticket types to block a ticket from being created if it does not meet specified criteria. Preventing your service desk from being clogged up with invalid requests. Validation can be based on the start/target date of the ticket, preventing the ticket being logged if the start/target date is not in an appropriate range. Validation can also be based on values in ticket fields (from v2.262+), including custom fields, preventing the ticket from being logged if a ticket field contains a certain value.&nbsp;</p><p><br></p><p>Validation is useful for various types of ticket/requests, including project tasks to ensure tasks are logged with an appropriate start/target date, and requests to ensure users/agents are prevented from logging requests with invalid data.&nbsp;</p><p><br></p><p>Validation checks run on tickets logged in the agent app, portal and when the ticket form is embedded in an external site.&nbsp;</p><p><br></p><p><strong><span style="font-size: 14pt;">Start/Target Date Validation</span></strong></p><p>Start/target date validation is used to validate the dates selected in the &#39;Start Date&#39; and &#39;Target Date&#39; fields on the ticket. Ensuring tickets are only logged when they have a valid start date. Used, for example, to prevent tickets being logged with a start date earlier than the creation date of the ticket. Particularly useful for projects and project tasks, where each ticket has a defined start/target date which can influence project planning and forecasting.&nbsp;</p><p><br></p><p><strong><em>Note: Validation will also apply when using the &quot;Start Date &amp; Time&quot; and &quot;Target Date &amp; Time&quot; fields.&nbsp;</em></strong></p><p><br></p><p>Start/target date validation is configured per ticket type, to begin, head to configuration &gt; Tickets &gt; Ticket Types &gt; select a ticket type &gt; Settings tab &gt; Validation section. Here you will have options to set &quot;Start Date Validation&quot; and &quot;Target Date Validation&quot;.</p><p><img src="https://halo.haloservicedesk.com/api/attachment/image?token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImQ4YTYyZGEwLTZhYTEtNGM3Zi04OTZmLWQyMWUzZDE0MTAzOCJ9.t13-V9IfLZmsPPiOds6rZn9P7QWUMt9oVfNuqBpKsfs" class="fr-fic fr-fil fr-dib" width="1749" style="width: 1751px; height: 575.575px;" height="576"></p><p><strong><span style="font-size: 10pt;">Fig 1. Configure Start/Target Date Validation&nbsp;</span></strong></p><p><br></p><p>Within these fields you will need to choose how date values are validated.&nbsp;</p><ul><li>Greater than or equal to now + X days - The start/target date must be a date that is X amount of days later than the current date. Prevents start/target dates from being logged in the past or too close to the current date.&nbsp;</li><li>Less than or equal to now + X days - The start/target date must occur within X amount of days of the current date. Prevents start/target dates being logged too far in advance.&nbsp;</li></ul><p><br></p><p>&nbsp;Using the Figure 1 example, the ticket can only be logged if the start date is at least 5 days after the current date (giving the team 5 days notice before a task begins), and if the target date is within the next 100 days.</p><p><br></p><p>The number of days chosen are based on the working hours of the ticket&#39;s SLA. This means days should be set based on &#39;working days&#39; not real time days.&nbsp;</p><p><br></p><p><span style="color: rgb(0, 0, 0);"><strong>Only Validate on creation -&nbsp;</strong>Check this option if you would like validation to only be considered when the ticket is logged. If checked, the start/target date fields can be updated to a date outside of the validates ranges after the ticket has been logged. Keep this unchecked if validation should always apply, even when setting start/target dates after a ticket has been logged.&nbsp;</span></p><p><br></p><p>Once validation is set, if an agent or user attempts to log a ticket of this type that is invalid, an error will appear to advise them and the ticket will not be logged.&nbsp;</p><p><img src="https://halo.haloservicedesk.com/api/attachment/image?token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6Ijg3ODJmZTM5LTQ4ODAtNDkzZS1iNDJkLTUwYzE3ZjQxYTcyYyJ9.qcTJZ9O07EcB65v8uVqdlR1IgCpUqncAxNjbCJpDX_A" class="fr-fic fr-fil fr-dib" width="1384" style="width: 1386px; height: 698.578px;" height="699"></p><p><strong><span style="font-size: 10pt;">Fig 2. Error when start date validation conditions not met</span></strong></p><p><br></p><p><strong><span style="font-size: 14pt;">Field Value Validation (v2.262+)</span></strong></p><p>Field value validation is used to block the creation of a ticket if ticket fields contain a certain value. Ensuring tickets are only logged in the appropriate conditions. Used, for example, to only allow users to log a &#39;Device load request&#39; when their device is not working and they have already raised an incident ticket for their device issues. Fields are used to have users confirm they have already raised an incident, validation can then be based on this field having a specified value.&nbsp;</p><p><br></p><p>This method of validation also allows you to display a custom message to the user should their ticket not meet the requirements. Particularly useful for re-directing users to the most efficient path for logging their incident/request.</p><p><br></p><p data-pasted="true">Field Value validation is configured per ticket type, to begin, head to configuration &gt; Tickets &gt; Ticket Types &gt; select a ticket type &gt; Settings tab &gt; Validation section. Here you will see a table where you can set &quot;Block Conditions&quot;.&nbsp;</p><p><img src="https://halo.haloservicedesk.com/api/attachment/image?token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjQ0NzhhMTNhLWVjMjUtNGJkYy1iMjMyLWNmYmI4MGFmZjhjOCJ9.NJ6pHiCydOp5jnC6CC9xqrBLVEQgYkycI4vdmHDC-m4" class="fr-fic fr-fil fr-dib" width="1707" style="width: 1709px; height: 432.021px;" height="432"></p><p><strong><span style="font-size: 10pt;">Fig 3. Block Conditions</span></strong></p><p><br></p><p>Here, add entries to set what criteria a ticket needs to meet in order to have it&#39;s creation blocked. If one of the fields specified, has the value(s) specified, the ticket will not be able to be logged.&nbsp;</p><p><br></p><p><strong><em>Note: Block Conditions cannot be based on date/time fields.&nbsp;</em></strong></p><p><br></p><p>When adding entries, choose the field to base validation on, then choose which value will block the creation of the ticket. Then you can set what message will be returned.&nbsp;</p><p><img src="https://halo.haloservicedesk.com/api/attachment/image?token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjVjNzY2OTFkLTNmYzEtNDZjMS05YzE4LThmZWQwOTA4Yjc2MCJ9.X1ITbXqvvts1z28vFgI_oRpVUwRz6r09pxUHDN_c8C8" class="fr-fic fr-fil fr-dib" width="1706" style="width: 1708px; height: 427.579px;" height="428"></p><p><strong><span style="font-size: 10pt;">Fig 4. Field value validation example</span></strong></p><p><br></p><p>In the Figure 4 example, a ticket will be block from being logged if the field &quot;Have you logged an incident for the issues with your device?&quot; has the value &quot;No&quot;. If this field does have this value, the set message will be returned, in this case the message advised the user to log an incident ticket first. &nbsp;</p><p><img src="https://halo.haloservicedesk.com/api/attachment/image?token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjlkOTc4NGU1LTM4MGEtNGQ4MC05MTEwLTZhNThiNmRjNzg0NyJ9.7Jm_54gr6LkkpFx8gVoVHT2Nfl4JT2b94KKuoQDX-tg" class="fr-fic fr-fil fr-dib" width="886" style="width: 888px; height: 122.168px;" height="122"></p><p><strong><span style="font-size: 10pt;">Fig 5. Custom Error returned when ticket blocked from being logged</span></strong></p><p><br></p><p><br></p>
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.