Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

REST API for integrated Insight

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

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!!

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

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 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

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
Community showcase
Asked in Jira Service Management

JSM June ask me anything (AMA)

Hello Community members! We’re wrapping up the end of JSM June with an Ask Me Anything (AMA) with the Jira Service Management product team. This is your chance to ask all your ITSM questions to o...

269 views 13 14
View question

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you