Skip to main content
Question

Pre-populated ticket fields


GCAChristophe
Contributor
Forum|alt.badge.img

Hi All,

I have tryied multiple time with the tickets already on the subject but I can't do what I want.

From the home page designer in FreshService, I'd like to integrate a card that would direct users to the ticket creation form, but with a pre-filled ticket category and Urgency.

I tried with this URL:

https://helpdesk.example.com/support/tickets/new?Urgency=Medium&category=technical%20service

Of course i replace helpdesk.example.com by my helpdesk url.

Except that when I try this URL, it doesn't work at all , I arrive on the new ticket page but nothing is pre-filled, if you ever have a solution, thank you for your help!

 

 

Did this topic help you find an answer to your question?

8 replies

Forum|alt.badge.img
  • Apprentice
  • 1 reply
  • February 21, 2024

Yes I have the exact same request, we are trying to set up a second workspace for another department and ideally we would like to have a card on the support portal which directs them to log a request through that department without needing to select the relevant area.


Daniel Söderlund
Skilled Expert
Forum|alt.badge.img+14
david.sobey wrote:

Yes I have the exact same request, we are trying to set up a second workspace for another department and ideally we would like to have a card on the support portal which directs them to log a request through that department without needing to select the relevant area.


There are java scripts that allow you to populate fields. 
Som fields works out of the box like subject. ?subject=Hello
You can select the workspace as well ?workspace_id=<id of the workspace>


GCAChristophe
Contributor
Forum|alt.badge.img
  • Author
  • Contributor
  • 3 replies
  • February 21, 2024

Hi Daniel ! Thanks for your help on this ! 

subject is working well ;-).

I have multiples questions :

  1. How can i find the good parameter for category and urgency for javascript ?
  2. How can i find the id of the differents fiels , for category and urgency in FreshService ?

Thanks for your help !


Daniel Söderlund
Skilled Expert
Forum|alt.badge.img+14
GCAChristophe wrote:

Hi Daniel ! Thanks for your help on this ! 

subject is working well ;-).

I have multiples questions :

  1. How can i find the good parameter for category and urgency for javascript ?
  2. How can i find the id of the differents fiels , for category and urgency in FreshService ?

Thanks for your help !

I think I remember a post here on the forum regarding a script. 


GCAChristophe
Contributor
Forum|alt.badge.img
  • Author
  • Contributor
  • 3 replies
  • February 21, 2024

I have tried with your ticket : 

But when i type this :

https://myitsm.com/support/tickets/new?category=Technical%20Services&sub_category=Improvement

Its not populating the category and sub category , but with the subject its working.


Daniel Söderlund
Skilled Expert
Forum|alt.badge.img+14
GCAChristophe wrote:

I have tried with your ticket : 

But when i type this :

https://myitsm.com/support/tickets/new?category=Technical%20Services&sub_category=Improvement

Its not populating the category and sub category , but with the subject its working.

It was @Rutger Bockholts who created the script. 


GCAChristophe
Contributor
Forum|alt.badge.img
  • Author
  • Contributor
  • 3 replies
  • February 21, 2024

Thanks @Daniel Söderlund , @Rutger Bockholts if you can help me on this please.

The main issue is we have a portal with 2 cards , the first one is used for the “IT Support contact” and the second one is used for the “technical services support contact” , and as far as i understand if i use your script in : Helpdesk Rebranding - Customize Custom Portal - Layout & Pages - Portal Pages - New Ticket , it will modify the standard comportement of the “new tickets card” if i unerstand well ?


LucasHansson
Skilled Expert
Forum|alt.badge.img+5
  • Skilled Expert
  • 18 replies
  • May 22, 2024

Hello,

 

I was wondering if someone got this working for service requests/catalogue items aswell?


Reply