Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 21:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.

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

Jira REST with apitoken - 403 Forbidden

Chuck Youngfeldt September 20, 2018

I need help getting my JIRA instance to accept REST.  its v.7.3.8
It's configured OAUTH with MFA so I need to use an apitoken.

I can successfully use my username:token with Confluence and bitbucket rest interfaces but just with JIRA, i get 403

Could this be a Jira setting?

Appreciate insite/advice anyone has to share.

 

Thanks!

2 answers

0 votes
Matthias Gaiser _K15t_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
September 23, 2018

Hi @Chuck Youngfeldt,

as @Nir Haimov said, 403 sounds like either Jira accepted your credentials and you don't have the permissions or didn't find credentials at all in your call. Since the call seems to work in your browser, I'd guess the first one is the case.

Some questions to point you to a possible solution or us to provide better help:

  • How are you performing your rest calls? For testing REST calls, I've found a tool like postman quite useful. There's even a Jira collection available so you can get started with all the calls quite easily.
  • Have you tried other endpoints than the one you are mentioning? 
    You could e.g. try to get the list of all fields

Cheers,
Matthias.

0 votes
Nir Haimov
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
September 21, 2018

If you get 403 that means you don't have access to do the action you are trying to do in Jira via REST API.

Try to check your Jira permissions for the thing you are trying to do

Chuck Youngfeldt September 21, 2018

I can run the command from a browser as the same jira user and have no issue.

My user has administrator and system-administrator rights plus I am doing the most basic of operations

  rest/api/latest/issue/createmeta

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events