- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-24-2018 06:23 AM
I want to pass EndPoint dynamically,
Like I am able to pass parameters via using ${} But I want the server name dynamically too.
Here ${subid} passes value perfectly
But Servername ${rest_endpoint} wont working.
I have declared this value in Script include
var subid = "**********";
var rest_endpoint = "**********";
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-24-2018 08:44 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-24-2018 08:44 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-24-2018 10:01 PM
Here 'base point' should be defined in the script include.
Like Var base point;
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-24-2018 10:22 PM
it's a field in Jira Issue
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-24-2018 10:28 PM
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}.