Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Making "rest/api/1.0/labels/suggest.json?customFieldId=xxxxx" works with window.AP

Melanie Geffre December 22, 2020

Hi everyone,

I'm developping an app in which I need to get the available options for a "Label" custom field. So far, I found out only rest API 1.0 is doing what I need.

The problem is that it does not work with the javascript API (window.AP), I get a 403 error, but when i test the call in postman with a basic authentication, it works as expected. I suspect that the authentication used is not compatible with the API 1.0.

Can someone confirm the problem ? If so, is there a ticket for that for atlassian or should I create it ?

Thanks in advance.

 

1 answer

0 votes
Prince Nyeche
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 22, 2020

Hi @Melanie Geffre 

Welcome to community! you are most probably not using an official API and such behaviours are expected and you shouldn't rely on it. There's a similar answer posted here which you can try as well.

Suggest an answer

Log in or Sign up to answer