Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
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

How to refer to JSON body or header when importing with RESTAPI URL in JSON format to Insight

Edited

If I query e.g. https://bitbucket.base.url/rest/api/1.0/admin/license

I will get response where the only thing I can map to in import object mapping is a sub-object "status" (which insight for some odd reason names "statu").

As the main json body does not have named element, I have not been able to figure out how to get the attributes it contains mapped to insight objects.

How do I map the attributes from JSON body to objects?

{
  "creationDate": 1610024400000,
  "purchaseDate": 1610197200000,
  "expiryDate": null,
  "numberOfDaysBeforeExpiry": 2147483647,
  "maintenanceExpiryDate": 1642597200000,
  "numberOfDaysBeforeMaintenanceExpiry": 35,
  "gracePeriodEndDate": null,
  "numberOfDaysBeforeGracePeriodExpiry": 2147483647,
  "maximumNumberOfUsers": 500,
  "unlimitedNumberOfUsers": false,
  "serverId": null,
  "supportEntitlementNumber": "SEN-123456",
  "license": "ABC1234LICENCEKEYGOESHERE",
  "status": {
    "currentNumberOfUsers": 345,
    "serverId": "something"
  }
}

 Additionally, there is valuable information in the header too, is there a way to refer to the json response header and e.g. pick host name from there?

0 answers

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
TAGS
Community showcase
Published in Jira Service Management

Next level incident management in Jira Service Management

Hello Atlassian Community! We’re thrilled to announce some exciting changes to incident management in Jira Service Management Cloud, in order to give your teams extra muscle during incidents, and ...

1,543 views 20 12
Read article

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