Forums

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

Only apps can access this resource for connect app

el_moreno
April 10, 2023

I have a Spring Boot app that I created following the instructions here:

https://bitbucket.org/atlassian/atlassian-connect-spring-boot/src/master/


I am able to install that app in my Jira instance and I can see it working, meaning, I can see a Hello World being printed to the screen. I am now trying to use the same app to register for web-hooks:


HttpResponse<JsonNode> response = Unirest.post("https://<my_domain>.atlassian.net/rest/api/2/webhook")
.basicAuth("<my_email>", "<API_Token>")
.header("Accept", "application/json")
.header("Content-Type", "application/json")
.body(json)
.asJson();
System.out.println(response.getBody().toPrettyString());

 

However, I get the following error message in response:


{
"errorMessages": [
"Only apps can access this resource."
],
"errors": {}
}


I am following all the correct documentation as far as I know, so I am not sure what the issue is. This is clearly a connect app that I created using the documentation provided. I would really like to avoid to user OAuth if possible. Any help would be greatly appreciated!

1 answer

1 vote
Gabriel Senna
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 8, 2018

Hi Ivan,

You can use validators in the workflow. This way, you can use an rule to not create and transition the issue to the "Open" status, for example, in case the field is not set in the way you want.

For this reason, I recommend you to take a look at the below documentation, to get more information using validators and if they can help you.

https://confluence.atlassian.com/adminjiracloud/advanced-workflow-configuration-776636620.html

Ivan Vukmanov
July 4, 2018

Hi Gabriel.

haven't tried it yet, because i got some new directions.

But probably the information will soon come in handy.

Thank you

Suggest an answer

Log in or Sign up to answer