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

Reports API (Code insights) - Sending value type LINK in data array.


I am working on adding reports to Pull Request view with code insights and reports API, however, I hit a snag when I was trying to send some test results reporting and the value type LINK.

I sent following in data array to add report API. 

"title": "Detailed Report",
"value": "",
"type": "LINK"

The response error was:

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

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

1 answer

1 accepted

1 vote
Answer accepted

LINK is an object that is the 2 parts of link (text,href)

{"text": "Link text here", "href": ""}

(found that in server docs)

This worked. Thanks a lot. Please don't mind me saying that, but Atlassian/bitbucket API documentation leaves a lot to be desired IMHO. 

Like Eddie Webbinaro likes this

I don't mind it!  I'm glad you did.  It's frustrating when things (especially api specs) are left to guess work.

I've actually raised an internal issue to bubble this note up in our cloud docs as well.

Like Syed.Naqib likes this
Like Syed.Naqib likes this

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bitbucket

New improvements to user management in Bitbucket Cloud 👥

Hey Community! We’re willing to wager that quite a few of you not only use Bitbucket, but administer it too. Our team is excited to share that we’ll be releasing improvements throughout this month of...

3,888 views 10 16
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