We'd like to know if it's possible to change labels {critical, high, medium, low} to {P1, P2, P3, P4} and if anyone has an idea where to look in the code for those labels? Wouldn't mind if it's only changed in this specific form on user's portal.
You'd need to override the translations (dictionary entries) for those labels.
There's some really good documentation by Combodo. And some official examples; but there's a lot more in this repository too on how to accomplish certain things.
I located the file with specific translations, in my case that's at
/var/www/html/env-production/itop-incident-mgmt-itil/dictionaries
and the file
en.dict.itop-incident-mgmt-itil.php
Is overriding - changing the en.dict.itop-incident-mgmt-itil.php file content (critical -> P1 for example) and then running itop/setup again?
Yeah, makes sense. Is that the only thing to watch for, changing the version? If overriding original files. We'll probably upgrade at some point so better to do it by creating new extensions.
Just curios, does itop/setup keep the current state of itop (tickets, incidents, config) and just adds new stuff?
Thanks Jeffrey
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
We'd like to know if it's possible to change labels {critical, high, medium, low} to {P1, P2, P3, P4} and if anyone has an idea where to look in the code for those labels? Wouldn't mind if it's only changed in this specific form on user's portal.
Thanks
You'd need to override the translations (dictionary entries) for those labels.
There's some really good documentation by Combodo. And some official examples; but there's a lot more in this repository too on how to accomplish certain things.
Most useful resources are: * https://www.itophub.io/wiki/page?id=latest%3Acustomization%3Axml_reference * https://www.itophub.io/wiki/page?id=latest%3Acustomization%3Adatamodel#content_of_a_module
Thanks Jeffrey,
I located the file with specific translations, in my case that's at
/var/www/html/env-production/itop-incident-mgmt-itil/dictionaries
and the file
en.dict.itop-incident-mgmt-itil.php
Is overriding - changing the en.dict.itop-incident-mgmt-itil.php file content (critical -> P1 for example) and then running itop/setup again?
Thx
Bad idea to override original files, as each upgrade you'll need to adapt it again.
The proper way to avoid this, is to create your own extension to override the specific dictionary entry indeed for 'critical' to display 'P1'.
Yeah, makes sense. Is that the only thing to watch for, changing the version? If overriding original files. We'll probably upgrade at some point so better to do it by creating new extensions.
Just curios, does itop/setup keep the current state of itop (tickets, incidents, config) and just adds new stuff?
Thanks Jeffrey
Your data is always kept, and upgraded if needed.