Request print shows Project ID instead of name.

Hi,

By changing System template: print request, you can change the print layout of a request.

In my case, I created an extra field Project Relation. 

When I print a request, it only prints the project ID, while I would like to print the project name. How should I approach this?

Regards,

Niels

RE: Request print shows Project ID instead of name.

I don't think that this is possible at the moment, but I've done something similar to another customer previously where I've created an extra field x_project_name of the type Text (Short), and on the System Scripts -> Saving a request, I listen to the field x_project and fetches the project name and stores it in x_project_name.

Atleast I'm able to use the project name in reply templates and so on later.

Av: Simen Mostuen Iversen 11. maj 2017

RE: Request print shows Project ID instead of name.

Hi Simen,

 

That was indeed my alternative, so must be the way forward for now.

Thankx for your reply!

Niels

Av: Niels van Broekhoven 11. maj 2017

RE: Request print shows Project ID instead of name.

Just a small note here: I would recommend making this solution so that it only updates the x_project_name field if the value has changed. If you forget this, you will most probably create an infinite loop since your new ticket save will cause the event handler again, etc. I believe we have some loop detection here, but in any case it would be very inefficient.

Sverre

Av: Sverre Hjelm 11. maj 2017

RE: Request print shows Project ID instead of name.

I thought it was implied, but remembering back to some of my jungle code, I guess it's useful to specify it :p

Av: Simen Mostuen Iversen 11. maj 2017