Hello Community,
We recently transitioned over to the new integrated Insight in our JSM projects and were very pleased to see the integration has improved significantly.
However, we were also very disappointed that the REST API seems to be missing from the integrated version and is listed as a "coming soon" feature.
This is vital for us to have working as we want to use it extensively in our JSM world.
Does anyone have the inside track on what "coming soon" actually means? Or any alternative suggestions we might be able to adopt?
We have JSM Premium if that makes any difference.
Thanks!
Hello Andy,
Please find Insight REST API documentation published today on the following page: https://developer.atlassian.com/cloud/insight/intro/introduction-and-basics/
FYI
Hakan Bahadir
Solutions Engineer
Thanks Hakan so very much for this - this is brilliant news and really gets us out of a hole!!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sorry one more question - is this "live" now so we should be able to use it today right?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Also just to confirm the endpoint for the workspace id should be found at:
https://your-atlassian-domain/servicedeskapi/insight/workspace right? If so this does not work for us at the moment.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You need to use an experimental header.
Here is how to do it in powershell but you could use postman or whatever.
$InsightServerUrl = "Your Site URL Here"$Username = "Your Case Sensitive Username"$Password = "Your API KEY Here"
# Encode Creds$auth = $Username + ':' + $Password$Encoded = [System.Text.Encoding]::UTF8.GetBytes($auth)$authorizationInfo = [System.Convert]::ToBase64String($Encoded)
# Set headers with ExperimentalApi$Headers = New-Object 'System.Collections.Generic.Dictionary[[String],[String]]'$Headers.Add('content-type' , 'application/json')$Headers.Add('Authorization', 'Basic ' + $authorizationInfo)$Headers.Add('X-ExperimentalApi', 'opt-in')
# Call the URI$Request = [System.UriBuilder]"$InsightServerUrl/rest/servicedeskapi/insight/workspace"$response = Invoke-RestMethod -Uri $Request.Uri -Headers $headers -Method GET$response.values.workspaceId
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Code is in Pastebin as this site screws formatting.
https://pastebin.com/TBpLQfDv
You can also just use my PS module.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.