oAuth app throwing error Unauthorized; scope does not match
プラットフォームについて: Cloud のみ - この記事は クラウド プラットフォームのアトラシアン製品に適用されます。
要約
oAuth app returns the following error
{“code”:401,“message”:“Unauthorized; scope does not match”}
環境
oAuth apps created via https://developer.atlassian.com/console/myapps/ using Jira Cloud API
原因
You are sending an API request via oAuth apps and it contains the following slash right before the parameter specifically "search/?"
https://api.atlassian.com/ex/jira/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx/rest/api/3/search/?
ソリューション
Remove the slash so that part of the URL changes from "search/?" to "search?" which results in the following end result after the slash is removed
https://api.atlassian.com/ex/jira/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx/rest/api/3/search?
this has to be removed due to a deprecation notice for the Lenient URL which can be found in the link below
https://developer.atlassian.com/changelog/#CHANGE-1320