Great explanation, we use it really similarly (script differs a bit, obviously). If you have more templates it's best to not use an IF, but a value map 🙂.
@void-dot-admin20 күн бұрын
Hey Xaero, maybe is just me but I hate mapping, I agree with you if we had like 10-15 issue types and different templates per issue type, value mapping is the way to go as it is more extensible & cleaner. But god damn, I don't stand maps :))) and in small scripts like this I always go with IF or switch :D
@void-dot-admin20 күн бұрын
and thank you very much for the feedback, I really appreciate it
@xaero21217 күн бұрын
@@void-dot-admin no problem
@xaero21217 күн бұрын
@@void-dot-admin totally get you - maps are not super easy. They are really readable, but you can easily make one small mistake and a whole script file is useless.