Welcome to Community Week 2025! Join us to learn, connect, and be recognized as we celebrate the spirit of Community and the power of AI. Get the details  

Rest Endpoint Dynamically Passing value !

Vivek Verma
Giga Sage

I want to pass EndPoint dynamically, 

Like I am able to pass parameters via using ${} But I want the server name dynamically too.find_real_file.png

Here ${subid} passes value perfectly

But Servername ${rest_endpoint} wont working.

I have declared this value in Script include

var subid = "**********";

var rest_endpoint = "**********";

1 ACCEPTED SOLUTION

Ct111
Tera Sage

Hi,

 

You have to pass something like this in ur script include to make it work in REST

 

Below is the example of JIRA

 

 r.setStringParameter('base_endpoint', gs.getProperty('com.snc.integration.jira.base_jira_instance_url'));

 

 

Mark my ANSWER as CORRECT and HELPFUL if it helped

View solution in original post

7 REPLIES 7

Ct111
Tera Sage

Hi,

 

You have to pass something like this in ur script include to make it work in REST

 

Below is the example of JIRA

 

 r.setStringParameter('base_endpoint', gs.getProperty('com.snc.integration.jira.base_jira_instance_url'));

 

 

Mark my ANSWER as CORRECT and HELPFUL if it helped

Here 'base point' should be defined in the script include. 

Like Var base point;        

 

it's a field in Jira Issue

 

In my script include I have used the below code,

 request.setStringParameter("rest_endpoint", gs.getProperty("rest_endpoint_vlalue"));

 

So Should I define this rest_point in somewhere in script include,

Like \\     var rest_point       \\

 

Or Directly used in Rest point as ${rest_endpoint}.