Query Regarding Request Template

Hi Freshservice Support, We have integrated Jira with Freshservice and encountered an issue. One of the customers has a domain name containing a slash, for example, “https://testJira/tesst1.com”. According to the request template, the domain should not include a slash. As a result, the customer is unable to install the app. Could you please guide us on how to resolve this issue? Thanks & Regards, Nagamanickam

1 Like

Hi @Nagamanickam_S

This is a strange one as slashes are not allowed in domain names. Are you sure its not a dot as that would indicate a subdomain

If that is correct, I think you could possibly use the context object to do this

your_request:{
    "schema": {
      "method": "GET",
      "host": "<%= context. domain%>.com",
      "path": "",
     }
}

You then make a call to the request as follows

`client.request.invokeTemplate(‘your_request’,{context:{domain:‘testjira/tesst1’}}

if it is a dot and not a slash then the request template would be

your_request:{
    "schema": {
      "method": "GET",
      "host": "testjira.tesst1.com",
      "path": "/jira_endpoint",
     }
}
1 Like

Hi @RobAtOpinyin,

Thank you for looking into this. I’m sure it doesn’t end with a dot, it ends with a slash.

The customer URL ends exactly like this: “https://testjira/tesst1.com/test”.

1 Like

Hello,
According me to resolve this problem you can try these steps.

  • Clarify the request template’s domain name requirements.
  • Communicate with the customer to adjust their domain name format.
  • Update the template if necessary.
  • Provide technical support for adjusting the domain name.
  • Test the integration after the adjustment to ensure installation proceeds smoothly.
    I hope this will help you,
    Thank you

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.