Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Reports API (Code insights) - Sending value type PERCENTAGE

Michael Russell April 17, 2020

I've been playing around with the new Pull Request view with code insights and setting up reports via the API for each PR, however, I hit a snag when I was trying to send some coverage reporting and the value type PERCENTAGE.

The response error was:

{"key": "report-service.general.bad-request", "message": "Value doesn't match expected type PERCENTAGE", "arguments": {}}

I'm curious what format the API is wanting when you're sending a percentage value?

 

1 answer

1 accepted

0 votes
Answer accepted
Michael Russell April 17, 2020

Just realized it was being casted to string before adding to payload, so floats work.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events