I created an API key without scope and was able to successfully obtain the results of the filter.
According to the API documentation, I created an API key with the scopes of read:jira-work and read:issue-details:jira, and called the same API to obtain the results of the filter, but I got a permission issue prompt.
“{
“errorMessages”: [
“A value with ID ‘10363’ does not exist for the field ‘filter’.”
],
“warningMessages”:[]
}”
Do I need to configure any other permissions?
Hey @Xiaowen Chen
If you're creating API Tokens with scope, you will need the following scopes to be able to fetch filter data using APIs:
Thanks!
Hello @Xiaowen Chen
This error usually indicates two things:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Nikola Perisic
Thanks for your reply.
When I use a key without a scope configured with my account, I can call this API normally.
But once I configure the key with the above - mentioned scope and then call this API, an error occurs.
Both calls are made with the same user account and the same filter. So I don't think the issue lies here.
Do you have any other suggestions?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Other than that no, are you using Postman?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes, I am. Could Postman have an impact on the API calls?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It shouldn't, could you continue to use the one without scopes?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If there's really no other way, I'll have to use the one without the scope.
However, using a token without a scope to call the API poses security risks. I'd much rather find a way to use the API with the scope configured properly.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.