Jira API key can't access issues or sprints that were created after its last login

Cam Jackson October 3, 2024

I'm building an application that uses the Jira REST API. The application has its own service account with its own jira login separate from any individual account.

As a one-off setup step, I have logged into Jira as the service account, and generated an API token from this page: 

Initially everything worked fine. However over time the application started getting 401 errors on some requests, especially when trying to access recently created issues, epics, and sprints. Once I go and log back into Jira manually as the service account, the application seems to start working again.

My current theory is that API keys can only access entities (issues, epics, sprints, etc) that existed at the time of the last login on the account that owns the API key. So for a service account that no one ever logs into, it gradually loses access to the most recent data.

Is my theory correct? And is there a way around it if so? I don't want to have to log in as the service account every now and then to "refresh" its access.

0 answers

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events