REST API for integrated Insight

Andy Hockenhull May 19, 2021

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!

1 answer

1 accepted

2 votes
Answer accepted
Hakan Bahadir
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 19, 2021

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

Andy Hockenhull May 19, 2021

Thanks Hakan so very much for this - this is brilliant news and really gets us out of a hole!!

Andy Hockenhull May 19, 2021

Sorry one more question - is this "live" now so we should be able to use it today right?

Andy Hockenhull May 19, 2021

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.

Gary.Smith May 25, 2021

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

Gary.Smith May 25, 2021

Code is in Pastebin as this site screws formatting.
https://pastebin.com/TBpLQfDv

You can also just use my PS module.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events