How do you generate a new ticket number only on save?? Basically prevent unused numbers...

joed_souza
Kilo Explorer

It appears like by default, if you click on New Incident or New Problem or New Change, a number (SYS_ID) is automatically generated even before you save the ticket so in case you do not need to save it, that number is gone forever.

How would you prevent that from happening - meaning assign a new number (SYS_ID) for a ticket only if you save or submit it?

Joe

11 REPLIES 11

Brian Dailey1
Kilo Sage

Hi Joseph,



Go to System Properties > System, and look for the property:



        "Assign a task number only upon insert (prevents unused numbers)."




Set this to "Yes" by checking the box.   That should do it for you.




Thanks,


-Brian


Cheers mate.. I'll try that..


I'm guessing the solution you pointed me to is a global setting which will affect ALL forms.. Correct??



Is there a way to restrict this setting to apply to only SPECIFIC forms?


Yes, I'm sure that setting applies to all task types, and I'm not sure where it gets queried to see what the property setting is.   There is a BR on [incident] (insert_incident) that sets the INC number:



        current.number = getNextObjNumberPadded();




But I'm not clear on where that property gets used to determine when to assign the number, so that maybe you could customize the process by task type.




-Brian