Getting " UNKNOWN HOST " issue in REST Script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-17-2017 06:05 AM
Hi All,
I am writing a REST script to integrate servicenow with jira but the provided api link is treated as wrong and i am getting Unknown host. Can anyone suggest is the api address is wrong or it is some other bug . Any solution will be thankful .
Pradeep Sharma's Blog Know Your Expert | Pradeep Sharma Developer Community SSL Certificate Management Within Service Now @
Thanks and Regards
Agatha
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-18-2017 06:25 AM
400 Bad request often means that the request body you're sending in the POST is incorrect. I would start by looking at the request body you're sending.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-20-2017 11:27 PM
Thanks Fred,
Can u pls give me a code sending a dummy data in post method.from servicenow I think i am getting error while sending my JSON values to the JIRA fields from SNOW. In jira fields there are some fields which have id or value is same but display values are different. Some fields having id customfield_10700 is same but their display value can be changed.
I have to send these fields from servicenow. JSON file is below.
{
"fields":
{"project":{"key":"ERP_GCA"},
"summary":"creating_issue_with_id",
"description":"Creating_issue_for",
"issuetype":{"id": "1"},
"priority":{"id":"4"},
"fixVersions": [{"id": "11219"}],
"components": [{"id":"10994"}],
"duedate":"2018-01-01 01:01:01 AM",
"customfield_10700":"01/01/01 01:01:01 AM",
"customfield_10002":{"value":"GCA"},
"customfield_12600":{"value":"PendingUpdate"},
"customfield_12700":{"value":"PendingUpdate"},
"customfield_12701":{"value":"PendingUpdate"},
"customfield_10701":"T000xyz",
"customfield_10703":"http://xyz.com/index.php?option=com_task&tmpl=component&type=inc_search&size=small&taskID=T000xyz"
}
}
Any sugettion how to send this json values??
Thanks and regards,
Agatha
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-17-2017 06:37 AM
Hi Agatha,
Are you trying to integrate demo Jira cloud to your instance ? then that is the issue.
you have to enable the REST API in Jira, Activating the REST API in jira needs seperate request to get access
Thanks.
Hope this is Helpful
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-17-2017 07:41 AM
No its my company domain jira. I have to integrate SNOW to JIRA and JIRA to SNOW.
Thanks
Agatha
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-17-2017 06:57 AM
Is the endpoint behind an internal firewall? If so you will need to send the REST message through a MID server.